2017 © Pedro Peláez
 

library zend-expressive

PSR-15 Middleware Microframework

image

zendframework/zend-expressive

PSR-15 Middleware Microframework

  • Monday, July 30, 2018
  • by zendframework
  • Repository
  • 129 Watchers
  • 674 Stars
  • 381,260 Installations
  • PHP
  • 113 Dependents
  • 5 Suggesters
  • 197 Forks
  • 14 Open issues
  • 60 Versions
  • 14 % Grown

The README.md

zend-expressive

Repository abandoned 2019-12-31

This repository has moved to mezzio/mezzio., (*1)

Build Status Coverage Status, (*2)

Develop PSR-7 middleware applications in minutes!, (*3)

zend-expressive builds on zend-stratigility to provide a minimalist PSR-7 middleware framework for PHP, with the following features:, (*4)

Installation

We provide two ways to install Expressive, both using Composer: via our skeleton project and installer, or manually., (*5)

Using the skeleton + installer

The simplest way to install and get started is using the skeleton project, which includes installer scripts for choosing a router, dependency injection container, and optionally a template renderer and/or error handler. The skeleton also provides configuration for officially supported dependencies., (*6)

To use the skeleton, use Composer's create-project command:, (*7)

$ composer create-project zendframework/zend-expressive-skeleton <project dir>

This will prompt you through choosing your dependencies, and then create and install the project in the <project dir> (omitting the <project dir> will create and install in a zend-expressive-skeleton/ directory)., (*8)

Manual Composer installation

You can install Expressive standalone using Composer:, (*9)

$ composer require zendframework/zend-expressive

However, at this point, Expressive is not usable, as you need to supply minimally:, (*10)

  • a router.
  • a dependency injection container.

We currently support and provide the following routing integrations:, (*11)

  • 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 against PSR-11 Container. We can recommend the following implementations:, (*12)

  • zend-servicemanager: composer require zendframework/zend-servicemanager
  • Pimple (see docs for more details): composer require zendframework/zend-pimple-config
  • Aura.Di (see docs for more details): composer require zendframework/zend-auradi-config

Additionally, you may optionally want to install a template renderer implementation, and/or an error handling integration. These are covered in the documentation., (*13)

Documentation

Documentation is in the doc tree, and can be compiled using mkdocs:, (*14)

$ mkdocs build

Additionally, public-facing, browseable documentation is available at https://docs.zendframework.com/zend-expressive/, (*15)

The Versions