1. Go to this page and download the library: Download slruslan/php-proxy6 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/ */
slruslan / php-proxy6 example snippets
$api = new \Slruslan\Proxy6\Wrapper('API_KEY');
// Получение баланса:
$api->getBalance();
// Получение списка всех прокси:
$api->getProxy(ProxyState::ALL);
// Получение списка активных прокси:
$api->getProxy(ProxyState::ACTIVE);
// Смена типа прокси с ID 1, 2 и 3 на SOCKS5:
$api->setType([1, 2, 3], ProxyType::SOCKS5);
// Смена типа прокси с ID 1, 2 и 3 на HTTPS:
$api->setType([1, 2, 3], ProxyType::HTTPS);
// Покупка 1 нового российского IPv6 прокси на 30 дней на сервисе:
$api->buy(1, 30, 'ru', ProxyVersion::IPV6);
// Продление прокси с ID 1, 2 и 3 на 30 дней:
$api->prolong(30, [1, 2, 3]);
$api = new Wrapper($key);
$result = (new ProxyOrder())
->setQuantity(2) // 1 by default
->setCountry('ru')
->setPeriod(30)
->setType(ProxyType::SOCKS5) // HTTPS by default
->setIpVersion(ProxyVersion::IPV4_SHARED) // IPV4 by default
->setDescription('Proxies for taking over the World') // Empty string by default
->setAutoProlongation(true) // false by default
->setReturnListArray(true) // false by default
->process($api);
bash
$ composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.