-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
29 lines (22 loc) · 808 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* This file is part of szczyglis/php-ultra-small-proxy.
*
* (c) Marcin Szczyglinski <szczyglis@protonmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require __DIR__ . '/vendor/autoload.php';
/**
* @package szczyglis/php-ultra-small-proxy
* @author Marcin Szczyglinski <szczyglis@protonmail.com>
* @copyright 2022 Marcin Szczyglinski
* @license http://www.opensource.org/licenses/MIT The MIT License
* @link https://github.com/szczyglis-dev/php-ultra-small-proxy
*/
use Szczyglis\UltraSmallProxy\UltraSmallProxy;
use Szczyglis\UltraSmallProxy\Config;
$config = new Config();
$proxy = new UltraSmallProxy($config);
echo $proxy->load('https://github.com'); // <-- specify start page here