This package adds a helper function to create a PSR Server Request from the Global PHP variables.
To install this package you need:
- PHP >= 7.4;
- composer.
composer require paynl/psr-server-request
This will install the package into your project and autoload the helper function.
To create a PSR Server Request from the PHP Globals you can use the following method:
$serverRequest = create_psr_server_request();