colossal / colossal-http-message
An implementation of the PSR-7 standardized interfaces.
v2.0.1
2023-06-04 08:29 UTC
Requires
- php: ^8.0
- psr/http-message: ^2.0
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.7
README
An implementation of the PSR-7 standardized interfaces.
Development Tips
Running PHPUnit Test Suites
Run the PHPUnit test suites with the following command:
>> .\vendor\bin\phpunit
To additionally print the test coverage results to stdout run the following command:
>> .\vendor\bin\phpunit --coverage-html="coverage"
Running PHPStan Code Quality Analysis
Run the PHPStan code quality analysis with the following command:
>> .\vendor\bin\phpstan --configuration=phpstan.neon --xdebug
Running PHP Code Sniffer Code Style Analysis
Run the PHP Code Sniffer code style analysis with the following commands:
>> .\vendor\bin\phpcs --standard=phpcs.xml src >> .\vendor\bin\phpcs --standard=phpcs.xml test
To fix automatically resolve issues found by PHP Code Sniffer run the following commands:
>> .\vendor\bin\phpcbf --standard=phpcs.xml src >> .\vendor\bin\phpcbf --standard=phpcs.xml test