nousefreak/proxy

此包已被废弃,不再维护。未建议替代包。

一个简单的代理..

dev-master 2013-02-20 22:49 UTC

This package is auto-updated.

Last update: 2020-01-29 23:11:25 UTC


README

一个简单的PHP代理。

使用方法

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();

$configuration = new \Proxy\Configuration();
$configuration->setBackend('nousefreak.be');

$proxy = new \Proxy\Proxy();
$proxy->setConfiguration($configuration);

$response = $proxy->proxy($request);
$response->send();