Download the PHP package effectra/http-server-handler without Composer

On this page you can find all versions of the php package effectra/http-server-handler. 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 http-server-handler

Effectra RequestHandler

The RequestHandler class is designed to handle HTTP requests by processing a stack of middlewares. It implements the RequestHandlerInterface to ensure compatibility with standardized request handling protocols.

Installation

You can install the RequestHandler class using Composer. Run the following command:

Usage

To use the RequestHandler, follow these steps:

  1. Create an instance of the RequestHandler class, providing a ResponseInterface object and an optional array of middlewares as parameters in the constructor.

  2. Call the handle method of the RequestHandler class, passing a ServerRequestInterface object representing the incoming request.

  3. The handle method will process the middlewares stack, executing each middleware in the order they were added. It will return a ResponseInterface object representing the response generated by the middlewares.

Additional Methods

getLastRequest

The RequestHandler class provides a convenient method, getLastRequest, to retrieve the last processed request. It returns a ServerRequestInterface|null object representing the last request or null if no request has been processed.

Contributing

Contributions are welcome! If you would like to contribute to the development of the RequestHandler class, please follow these steps:

  1. Fork the repository and clone it locally.
  2. Create a new branch for your changes.
  3. Make your modifications and additions.
  4. Write tests to ensure the functionality of the class.
  5. Commit your changes and push them to your fork.
  6. Submit a pull request detailing your changes.

License

This project is licensed under the MIT License.


All versions of http-server-handler with dependencies

PHP Build Version
Package Version
Requires psr/http-server-handler Version ^1.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 effectra/http-server-handler contains the following files

Loading the files please wait ....