PHP code example of jakubboucek / nette-http-request-strict-proxy

1. Go to this page and download the library: Download jakubboucek/nette-http-request-strict-proxy 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/ */

    

jakubboucek / nette-http-request-strict-proxy example snippets


use JakubBoucek\HttpStrictProxy\ProxyRequestFactory;

$factory = new ProxyRequestFactory(['your-secret-psk-key']);
$request = $factory->createRequest(); // Nette\Http\Request
shell
php -r 'echo bin2hex(random_bytes(32)) . PHP_EOL;'