PHP code example of shintio / yii2-proxy-httpclient
1. Go to this page and download the library: Download shintio/yii2-proxy-httpclient library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shintio / yii2-proxy-httpclient example snippets
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;
bash
php yii migrate --migrationPath="vendor/shintio/yii2-proxy-httpclient/src/database/migrations/"