PHP code example of szczyglis / php-ultra-small-proxy
1. Go to this page and download the library: Download szczyglis/php-ultra-small-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/ */
szczyglis / php-ultra-small-proxy example snippets
// app.php
traSmallProxy\UltraSmallProxy;
use Szczyglis\UltraSmallProxy\Config;
$config = new Config();
$proxy = new UltraSmallProxy($config);
echo $proxy->load('https://github.com'); // <-- specify start page here
use Szczyglis\UltraSmallProxy\UltraSmallProxy;
use Szczyglis\UltraSmallProxy\Config;
$config = new Config();
$proxy = new UltraSmallProxy($config);
echo $proxy->load('https://github.com');