Comments (9)
So, adding this to documentation would suffice?
We need a separate page which shows the different ways for an installation. Creating a project via the skeleton application is one of them. The manual installation may be another.
An entry "Installation" is completely missing in the navigation: https://docs.mezzio.dev/mezzio/
from mezzio.
It's not broken, you are missing a psr/http-message-implementation
, e.g. zendframework/zend-diactoros
So I guess this would do:
composer require zendframework/zend-expressive zendframework/zend-diactoros
Originally posted by @JoeBengalen at zendframework/zend-expressive#624 (comment)
from mezzio.
@ksemeks One new tool for you: composer why-not <package>
. This will give you detailed information on what blocks installation of a package.
That said, your error message indicates the issue:
zendframework/zend-httphandlerrunner 1.0.1 requires psr/http-message-implementation ^1.0 -> no matching package found.
We do not currently cover installation within an existing project, which tells me this should be documented. I'm adding the "documentation" and "help wanted" labels presently, so somebody can pick that up.
Originally posted by @weierophinney at zendframework/zend-expressive#624 (comment)
from mezzio.
Currently Mezzio requires an implementation of psr/http-message-implementation
as well as laminas/laminas-httphandlerrunner
. This can be achieved with e.g.:
composer require laminas/laminas-diactoros laminas/laminas-httphandlerrunner mezzio/mezzio
However, this does not add the same value as utilizing mezzio/mezzio-skeleton
which in addition sets up a directory structure and installs a DI, a router and optionally a template engine and error handler.
The documentation of this process is cumbersome and of little value, since it first adds little value for very few users using this scenario and secondly it is much easier to run the mezzio/mezzio-skeleton
installer and copy the necessary components over to the existing project.
IMO this is a won't fix of an edge case.
from mezzio.
The documentation of this process is cumbersome and of little value, since it first adds little value for very few users using this scenario and secondly it is much easier to run the
mezzio/mezzio-skeleton
installer and copy the necessary components over to the existing project.
A documentation page for the installation is still missing and a manual installation should also be added there.
composer require laminas/laminas-diactoros laminas/laminas-httphandlerrunner mezzio/mezzio
laminas-httphandlerrunner can be omitted from this command:
Lines 39 to 43 in d5bf81f
from mezzio.
A documentation page for the installation is still missing and a manual installation should also be added there.
I am missing something here. What is the value of adding only mezzio/mezzio
to an existing project? Would the documentation cover routing and DI, application structure, ...?
composer require laminas/laminas-diactoros laminas/laminas-httphandlerrunner mezzio/mezziolaminas-httphandlerrunner can be omitted from this command:
Lines 39 to 43 in d5bf81f
You are right. Good catch!
from mezzio.
I am missing something here. What is the value of adding only
mezzio/mezzio
to an existing project? Would the documentation cover routing and DI, application structure, ...?
Sorry, I was a bit unclear here. I mean only the manual installation, not any integration. I think an integration or a migration can be a topic for blog post or something similar.
from mezzio.
So, adding this to documentation would suffice?
Prior to manually installing Mezzio, check if the project has an implementation of
psr/http-message-implementation
. If does not, add one of your choice, e.g.:composer require laminas/laminas-diactoros mezzio/mezzio
from mezzio.
Will be fixed with #119
from mezzio.
Related Issues (20)
- Create `Mezzio\ApplicationPipeline` implementation for better static code analysis HOT 1
- Missing good examples of configuration template paths for laminas-view in mezzio HOT 3
- Replace `RequestHandlerRunner` factory with `RequestHandlerRunnerInterface` factory HOT 3
- Page with the description of the installation is missing
- Dependency Dashboard
- [RFC]: Provide an ApplicationProgrammaticConfigDelegator that pairs with ApplicationConfigInjectionDelegator HOT 4
- Script MezzioInstaller\OptionalPackages::install handling the pre-install-cmd event terminated with an exception HOT 3
- Upgrading to PHP 8.2 breaks Dependency Injection HOT 9
- [RFC]: Remove Pimple from Mezzio documentation and from Mezzio skeleton HOT 3
- bin/mezzio-tooling is incompatible with mezzio/mezzio-tooling v2 HOT 7
- [RFC]: Deprecate `ApplicationConfigInjectionDelegator` and `Application#post`, etc.
- Provide `RouteCollectorInterface` and `MiddlewarePipeInterface` delegators to supersede `ApplicationConfigInjectionDelegator` HOT 1
- jsoumelidis/zend-sf-di-config[0.4.0, ..., 0.4.1] require php ^7.1 -> your php version 8.0.99 HOT 1
- PhpDebugBar documentation is outdated. HOT 1
- [RFC]: Remove Aura.Di from Mezzio documentation and from Mezzio skeleton HOT 1
- [RFC]: Add Symfony DependencyInjection as container HOT 2
- [RFC]: Add chubbyphp-container as container
- Move router integration tests to router packages
- PHP 8.1 Support HOT 12
- Support for laminas-httphandlerrunner 2.x versions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mezzio.