Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

PSR-15 middleware in minutes!

License

NotificationsYou must be signed in to change notification settings

zendframework/zend-expressive

Repository abandoned 2019-12-31

This repository has moved tomezzio/mezzio.

Build StatusCoverage Status

Develop PSR-7 middleware applications in minutes!

zend-expressive builds onzend-stratigilityto provide a minimalist PSR-7 middleware framework for PHP, with the followingfeatures:

Installation

We provide two ways to install Expressive, both usingComposer: via ourskeleton project and installer,or manually.

Using the skeleton + installer

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).

Manual Composer installation

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

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/


[8]ページ先頭

©2009-2025 Movatter.jp