Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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
forked frommezzio/mezzio

PSR-15 Middleware Microframework

License

NotificationsYou must be signed in to change notification settings

arhimede/mezzio

 
 

Repository files navigation

Build Status

Develop PSR-7 middleware applications in minutes!

mezzio builds onlaminas-stratigilityto provide a minimalist PSR-7 middleware framework for PHP, with the followingfeatures:

Installation

We provide two ways to install Mezzio, 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 mezzio/mezzio-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 amezzio-skeleton/ directory).

Manual Composer installation

You can install Mezzio standalone using Composer:

$ composer require mezzio/mezzio

However, at this point, Mezzio is not usable, as you need to supplyminimally:

  • a router.
  • a dependency injection container.

We currently support and provide the following routing integrations:

We recommend using a dependency injection container, and typehint againstPSR-11 Container. Wecan recommend the following implementations:

  • laminas-servicemanager:composer require laminas/laminas-servicemanager
  • Pimple (seedocs for more details):composer require laminas/laminas-pimple-config
  • Aura.Di (seedocs for more details):composer require laminas/laminas-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.mezzio.dev/mezzio/

About

PSR-15 Middleware Microframework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp