Download the PHP package websoftwares/middleware without Composer

On this page you can find all versions of the php package websoftwares/middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package middleware

Middleware (v0.0.*)

This package lets u manage middleware for a HTTP request and response that implement the PSR-7 HTTP message interfaces Psr\Http\Message\ServerRequestInterface and Psr\Http\Message\ResponseInterface.

Build Status Scrutinizer Code Quality Code Coverage

Installing via Composer (recommended)

Install composer in your project:

Create a composer.json file in your project root:

Install via composer

Usage

Basic usage of the MiddlewareRunner class.

Routing example with external package

Their are many excellent PHP router packages and in time some will be made compatible with PSR-7. In this basic example we will show u how to use the MiddlewareRunner class in conjunction with the latest development version of the Aura Router package.

Adapters

At the time of writing PSR-7 is almost on the horizon released :-) and their are many well written community supported HTTP orientated packages but most packages are not yet compliant.

To avoid mass rewrites of all these great packages or waiting for the author and or community to update them or holding out on the advantage of new compliant packages we can make use of the Adapter pattern to make them for example suitable for PSR-7 middleware.

Adapter RequestAuthenticatorAdapter example

The package acquia/http-hmac-php is an implementation of the HTTP HMAC Spec in PHP We want to validate the signature throw an exception or continue the middleware stack if it is a valid signature.

Changelog

Testing

In the tests folder u can find several tests.

Acknowledgement

Inspired by all the great middleware packages

License

The MIT License (MIT).


All versions of middleware with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
psr/http-message Version ~1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package websoftwares/middleware contains the following files

Loading the files please wait ....