PHP code example of sazharul / iproxy

1. Go to this page and download the library: Download sazharul/iproxy 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/ */

    

sazharul / iproxy example snippets


use Sazharul\Iproxy\Facades\Iproxy;

// Get the list of connections
$connections = Iproxy::getConnectionList();

// Get proxies for a specific connection
$proxies = Iproxy::getProxiesByConnectionId($connectionId);

// Create a new proxy
$newProxy = Iproxy::createProxy($connectionId);

// Delete a proxy
$deleteResponse = Iproxy::deleteProxy($connectionId, $proxyId);

// Update a proxy
$updateResponse = Iproxy::updateProxy($connectionId, $proxyId, $data);

// Change the password of a proxy
$passwordChangeResponse = Iproxy::changeProxyPassword($connectionId, $proxyId, $newPassword);

// Change the login of a proxy
$loginChangeResponse = Iproxy::changeProxyLogin($connectionId, $proxyId, $newLogin);

return [
    'api_key' => env('IPROXY_KEY'),
];
bash
php artisan vendor:publish --provider="Sazharul\Iproxy\IproxyServiceProvider"