rest-proxy:RestProxy

时间:2021-04-29 09:56:51
【文件属性】:
文件名称:rest-proxy:RestProxy
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-29 09:56:51
PHP 休息代理 简单的休息代理 例子 <?php require_once __DIR__ . '/../vendor/autoload.php'; use Symfony\Component\HttpFoundation\Request; use RestProxy\RestProxy; use RestProxy\CurlWrapper; $proxy = new RestProxy( Request::createFromGlobals(), new CurlWrapper() ); $proxy->register('github', 'https://api.github.com'); $proxy->run(); foreach($proxy->getHeaders() as $header) { header($header); } echo $p
【文件预览】:
rest-proxy-master
----www()
--------index.php(830B)
----src()
--------RestProxy.php(2KB)
--------CurlWrapper.php(4KB)
----.travis.yml(99B)
----composer.lock(4KB)
----phpunit.xml(1KB)
----README.md(1012B)
----tests()
--------SimpleTest.php(3KB)
----.gitignore(7B)
----composer.json(612B)

网友评论