GithubHelp home page GithubHelp logo

mtymek / zend-expressive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zendframework/zend-expressive

0.0 2.0 0.0 3.36 MB

Start to develop PSR-7 middleware applications in PHP in a minute!

License: BSD 3-Clause "New" or "Revised" License

PHP 99.56% Makefile 0.44%

zend-expressive's Introduction

zend-expressive

Build Status

Begin developing PSR-7 middleware applications in minutes!

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

Installation

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

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.

To use the skeleton, use Composer's create-project command:

$ composer create-project -s rc 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).

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 supply minimally:

  • 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
  • ZF2 MVC Router: composer require zendframework/zend-expressive-zendrouter

We recommend using a dependency injection container, and typehint against container-interop. We can recommend the following implementations:

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

Documentation

Documentation is in the doc tree, and can be compiled using bookdown:

$ bookdown doc/bookdown.json
$ php -S 0.0.0.0:8080 -t doc/html/ # then browse to http://localhost:8080/

Bookdown

You can install bookdown globally using composer global require bookdown/bookdown. If you do this, make sure that $HOME/.composer/vendor/bin is on your $PATH.

Additionally, public-facing, browseable documentation is available at http://zend-expressive.rtfd.org.

Architecture

Architectural notes are in NOTES.md.

Please see the tests for full information on capabilities.

zend-expressive's People

Contributors

acelaya avatar bakura10 avatar chris2039 avatar danizord avatar ezimuel avatar geerteltink avatar grizzm0 avatar harikt avatar kenjis avatar kingjerod avatar kynx avatar maks3w avatar mecu avatar michaelmoussa avatar moderndeveloperllc avatar mtymek avatar mwillbanks avatar nikolaposa avatar ocramius avatar ojhaujjwal avatar pborreli avatar prolic avatar samsonasik avatar spiffyjr avatar weierophinney avatar zf2timo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.