php-http/message
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
clue/stream-filter | v1.7.0 | - | MIT | prod |
The php-http/message package is a set of HTTP Message related tools designed for improving and simplifying HTTP workflows in PHP. This package provides a variety of PSR-7 tools which can be massively beneficial in HTTP development projects. Some of the notable tools include authentication method implementations, stream encoding tools, message decorators, message factory implementations for Guzzle PSR-7 and Diactoros, a cookie implementation, and request matchers.
The php-http/message package can be installed via Composer by running the following command: composer require php-http/message
. Once installed, the tools provided by the package can be utilized in your PHP code. For instance, to use the authentication method implementations or other features, you'd use them in compliance with the usual HTTP workflows and PHP standards.
Without the actual code of your project, it's hard to provide an exact usage example, but in general, you'll import the needed classes from the package and use them where relevant in your code.
Although examples are not provided in the readme, the typical usage of libraries like this would look something like:
// Import the classes
use Http\Message\Authentication;
// Create an instance and use the methods
$authentication = new Authentication();
$authentication->methodSample();
Again, this is just a very basic and generalized example. More specific usage would depend on the exact functionalities you need from the package.
The official documentation for the php-http/message package is housed on the PHP-HTTP website. Complete and detailed instructions and explanations of the package, its installation, usage, testing, and more can be found by visiting http://docs.php-http.org/en/latest/message.html. These comprehensive documents are an ideal resource for in-depth understanding of the package and for troubleshooting any possible issues users may encounter.