PHP code example of legionth / http-middleware
1. Go to this page and download the library: Download legionth/http-middleware 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/ */
legionth / http-middleware example snippets
class MyMiddleWare implements ClientMiddlewareInterface
{
public function process(RequestInterface $request, DelegateInterface $next)
{
return $next->next($request);
}
}