Download the PHP package ajgarlag/psr-http-message-bundle without Composer

On this page you can find all versions of the php package ajgarlag/psr-http-message-bundle. 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 psr-http-message-bundle

AjgarlagPsrHttpMessageBundle

This bundle provides support for HTTP messages interfaces defined in PSR-7. It allows to inject instances of Psr\Http\Message\ServerRequestInterface and to return instances of Psr\Http\Message\ResponseInterface in controllers.

The inital code is borrowed from sensio/framework-extra-bundle which removed support for PSR-7 since version 6.0.

Installation

To install the latest stable version of this component, open a console and execute the following command:

Note that autowiring aliases for PSR-17 must be installed. An easy way to provide them is to require nyholm/psr7 :

Configuration

If your code depends on old sensio_framework_extra_... services identifiers, you should enable aliasing defining:

Usage

Then, PSR-7 messages can be used directly in controllers like in the following code snippet

Note that internally, Symfony always use Symfony\Component\HttpFoundation\Request and Symfony\Component\HttpFoundation\Response instances.

Upgrade path from sensio/framework-extra-bundle support

If your code depends on sensio/framework-extra-bundle support, this is the suggested upgrade path:

  1. Require sensio/framework-extra-bundle:^5.3.
  2. Require ajgarlag/psr-http-message-bundle:^1.1, and enable old services aliasing.
  3. Disable PSR-7 support in sensio_framework_extra configuration.
  4. If your code depends on old sensio_framework_extra.psr7.http_(message|foundation)_factory services identifiers, modify service definitions to use the Symfony\Bridge\PsrHttpMessage\Http(Message|Foundation)Interface alternatives following deprecation messages.
  5. Do you need any other feature provided by sensio/framework-extra-bundle?:
    • YES: require sensio/framework-extra-bundle:^6.0.
    • NO: remove sensio/framework-extra-bundle.

License

This component is under the MIT license. See the complete license in the LICENSE file.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

Author Information

Developed with ♥ by Antonio J. García Lagar.

If you find this component useful, please add a ★ in the GitHub repository page and/or the Packagist package page.


All versions of psr-http-message-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/psr-http-message-bridge Version ^1.1|^2.0
psr/http-factory Version ^1.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/framework-bundle Version ^5.4|^6.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 ajgarlag/psr-http-message-bundle contains the following files

Loading the files please wait ....