shintio/yii2-proxy-httpclient
Composer 安装命令:
composer require shintio/yii2-proxy-httpclient
包简介
Native httpclient with custom or autoparsed free proxy servers
README 文档
README
Native httpclient with custom or autoparsed free proxy servers
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist shintio/yii2-proxy-httpclient "*"
or add
"shintio/yii2-proxy-httpclient": "*"
to the require section of your composer.json file.
Apply migrations by following command:
php yii migrate --migrationPath="vendor/shintio/yii2-proxy-httpclient/src/database/migrations/"
Usage
Once the extension is installed, simply use it in your code like:
use shintio\yii2\proxy\components\Client; $client = new Client(); $request = $client->createRequest()->setMethod('get')->setUrl('https://2ip.ru/'); $response = $request->send(); echo $response->content; die;
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-09-27