PHP code example of runtime / psr-guzzle
1. Go to this page and download the library: Download runtime/psr-guzzle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
runtime / psr-guzzle example snippets
// public/index.php
use Psr\Http\Message\ServerRequestInterface;
use GuzzleHttp\Psr7;
[], 'PSR-7');
};
// public/index.php
use Psr\Http\Server\RequestHandlerInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Psr7;
sr7\Response(200, [], 'PSR-15');
}
}
return function (array $context) {
return new Application($context['APP_ENV'] ?? 'dev');
};