Download the PHP package kaspi/psr7-wizard without Composer
On this page you can find all versions of the php package kaspi/psr7-wizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kaspi/psr7-wizard
More information about kaspi/psr7-wizard
Files in kaspi/psr7-wizard
Package psr7-wizard
Short Description Make PSR-7 ServerRequest from global variables
License MIT
Informations about the package psr7-wizard
🧙🏻♂️ psr7-wizard
Building ServerRequest class which implement PSR-7 ServerRequestInterface from global PHP variables.
Require PHP 8.1 or newest.
additional links: PSR-7, PSR-17
Installation
Usage
Development environment
- Local development (without Docker)
- With Docker images (WSL, Linux)
Local development
Required PHP 8.1, php Composer 2.x
Testing
Run test without code coverage
Running tests with checking code coverage by tests with a report in html format
Requires installed PCOV driver
⛑ the results will be in the folder .coverage-html
Static code analysis
For static analysis we use the package Phan.
Running without PHP extension PHP AST
Code style
To bring the code to standards, we use php-cs-fixer which is declared in composer's dev dependencies.
Using Docker image with PHP 8.1, 8.2, 8.3
You can specify the image with the PHP version in the .env
file in the PHP_IMAGE
key.
By default, the container is built with the php:8.1-cli-alpine
image.
Build docker container
Install php composer dependencies:
Run tests with a code coverage report and a report in html format
⛑ the results will be in the folder .coverage-html
Phan (static analyzer for PHP)
You can work in a shell into a docker container:
Using Makefile commands.
Check and correct code style:
Run the static code analyzer:
Run tests:
Run all stages of checks:
All versions of psr7-wizard with dependencies
psr/http-message Version 1.1 || ^2.0
psr/http-factory Version ^1.0