PHP code example of aalfiann / pubproxy-class-php

1. Go to this page and download the library: Download aalfiann/pubproxy-class-php 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/ */

    

aalfiann / pubproxy-class-php example snippets



use \aalfiann\PubProxy;

$proxy = new PubProxy;
echo $proxy->make()->getProxy();


use \aalfiann\PubProxy;

$proxy = new PubProxy;
// with Json format
echo $proxy->make()->getJson();
// with Text format
echo $proxy->make()->getText();


use \aalfiann\PubProxy;

$proxy = new PubProxy;
$proxy->level = 'elite';
$proxy->type = 'http';
$proxy->country = 'us';
$proxy->make()->getJson();


use \aalfiann\PubProxy;

$proxy = new PubProxy;
echo $proxy->setLevel('elite')->setType('http')->setCountry('us')->make()->getJson();