Skip to content

Native httpclient with custom or autoparsed free proxy servers

Notifications You must be signed in to change notification settings

Shintio/yii2-proxy-httpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Yii2 Proxy Httpclient

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;

About

Native httpclient with custom or autoparsed free proxy servers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages