- Notifications
You must be signed in to change notification settings - Fork192
PSR-15 middleware in minutes!
License
zendframework/zend-expressive
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository has moved tomezzio/mezzio.
Develop PSR-7 middleware applications in minutes!
zend-expressive builds onzend-stratigilityto provide a minimalist PSR-7 middleware framework for PHP, with the followingfeatures:
- Routing. Choose your own router; we support:
- DI Containers, viaPSR-11 Container.Middleware matched via routing is retrieved from the composed container.
- Optionally, templating. We support:
We provide two ways to install Expressive, both usingComposer: via ourskeleton project and installer,or manually.
The simplest way to install and get started is using the skeleton project, whichincludes installer scripts for choosing a router, dependency injectioncontainer, and optionally a template renderer and/or error handler. The skeletonalso provides configuration for officially supported dependencies.
To use the skeleton, use Composer'screate-project command:
$ composer create-project zendframework/zend-expressive-skeleton<project dir>
This will prompt you through choosing your dependencies, and then create andinstall the project in the<project dir> (omitting the<project dir> willcreate and install in azend-expressive-skeleton/ directory).
You can install Expressive standalone using Composer:
$ composer require zendframework/zend-expressive
However, at this point, Expressive is not usable, as you need to supplyminimally:
- a router.
- a dependency injection container.
We currently support and provide the following routing integrations:
- Aura.Router:
composer require zendframework/zend-expressive-aurarouter - FastRoute:
composer require zendframework/zend-expressive-fastroute - zend-router:
composer require zendframework/zend-expressive-zendrouter
We recommend using a dependency injection container, and typehint againstPSR-11 Container. Wecan recommend the following implementations:
- zend-servicemanager:
composer require zendframework/zend-servicemanager - Pimple (seedocs for more details):
composer require zendframework/zend-pimple-config - Aura.Di (seedocs for more details):
composer require zendframework/zend-auradi-config
Additionally, you may optionally want to install a template rendererimplementation, and/or an error handling integration. These are covered in thedocumentation.
Documentation isin the doc tree, and can be compiled usingmkdocs:
$ mkdocs build
Additionally, public-facing, browseable documentation is available athttps://docs.zendframework.com/zend-expressive/
About
PSR-15 middleware in minutes!
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.