paynl / psr-server-request
Create a PSR Server Request from PHP Globals
Installs: 2 276
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 | ^8
- nyholm/psr7: ^1.8
- nyholm/psr7-server: ^1.1
- psr/http-message: ^1.0 || ^2.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.7
- phpstan/phpstan: ^1.10
- phpunit/phpcov: ^8.2
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.7
README
This package adds a helper function to create a PSR Server Request from the Global PHP variables.
Requirements
To install this package you need:
- PHP >= 7.4;
- composer.
Installation
composer require paynl/psr-server-request
This will install the package into your project and autoload the helper function.
Usage
To create a PSR Server Request from the PHP Globals you can use the following method:
$serverRequest = create_psr_server_request();