slim / psr7
Strict PSR-7 implementation
Installs: 10 337 662
Dependents: 367
Suggesters: 5
Security: 1
Stars: 133
Watchers: 13
Forks: 45
Open Issues: 3
Requires
- php: ^8.0
- fig/http-message-util: ^1.1.5
- psr/http-factory: ^1.1
- psr/http-message: ^1.0 || ^2.0
- ralouphie/getallheaders: ^3.0
- symfony/polyfill-php80: ^1.29
Requires (Dev)
- ext-json: *
- adriansuter/php-autoload-override: ^1.4
- http-interop/http-factory-tests: ^1.1.0
- php-http/psr7-integration-tests: 1.3.0
- phpspec/prophecy: ^1.19
- phpspec/prophecy-phpunit: ^2.2
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.10
Provides
- psr/http-factory-implementation: ^1.0
- psr/http-message-implementation: ^1.0 || ^2.0
README
Strict PSR-7 implementation used by the Slim Framework, but you may use it separately with any framework compatible with the PSR-7 standard.
Installation
It's recommended that you use Composer to install this library.
$ composer require slim/psr7
This will install the slim/psr7
component and all required dependencies.
PHP 8.0 or newer is required.
Tests
To execute the test suite, you'll need to clone the repository and install the dependencies.
$ git clone https://github.com/slimphp/Slim-Psr7
$ composer install
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover security related issues, please email security@slimframework.com instead of using the issue tracker.
Credits
License
This component is licensed under the MIT license. See License File for more information.