eureka / component-http
PHP PSR-15 implementation.
Requires
- php: 7.4.*||8.0.*||8.1.*||8.2.*||8.3.*||8.4.*
- psr/http-message: ^1.0||^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75.0
- phpstan/phpstan: ^2.1.16
- phpstan/phpstan-phpunit: ^2.0.6
- phpstan/phpstan-strict-rules: ^2.0.4
- phpunit/phpcov: ^8.2.1
- phpunit/phpunit: ^9.6.23
- shipmonk/composer-dependency-analyser: ^1.8.3
This package is auto-updated.
Last update: 2025-05-19 08:29:00 UTC
README
Usage
This component is used in eureka/kernel-http
component.
This is a simple implementation of the PSR-15 (Request Handler).
Testing & CI (Continuous Integration)
You can run tests on your side with following commands:
make php/tests # run tests with coverage make php/test # run tests with coverage make php/testdox # run tests without coverage reports but with prettified output
You also can run code style check or code style fixes with following commands:
make php/check # run checks on check style make php/fix # run check style auto fix
To perform a static analyze of your code (with phpstan, lvl 9 at default), you can use the following command:
make php/analyze # Same as phpstan but with CLI output as table
To ensure you code still compatible with current supported version and futures versions of php, you need to run the following commands (both are required for full support):
make php/min-compatibility # run compatibility check on current minimal version of php we support make php/max-compatibility # run compatibility check on last version of php we will support in future
And the last "helper" commands, you can run before commit and push is:
make ci
This command clean the previous reports, install component if needed and run tests (with coverage report), check the code style and check the php compatibility check, as it would be done in our CI.
Contributing
See the CONTRIBUTING file.
License
This project is currently under The MIT License (MIT). See LICENCE file for more information.