sazharul / iproxy
A Laravel package to easily configure and manage proxy servers, supporting HTTP, HTTPS, SOCKS4, and SOCKS5 proxies with authentication, logging, and customizable routing rules.
v1.0.0
2024-06-04 13:30 UTC
README
The Laravel IProxy package provides a convenient way to interact with the iProxy API for managing proxy configurations in Laravel applications.
Installation
You can install the package via Composer:
composer require sazharul/iproxy
Publish the package configuration file using Artisan:
php artisan vendor:publish --provider="Sazharul\Iproxy\IproxyServiceProvider"
Usage
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);
Make sure to replace Sazharul
with your package vendor name and Iproxy
with your package name.
Configuration
You need to set your iProxy API key in the config/iproxy.php
file.
return [ 'api_key' => env('IPROXY_KEY'), ];
License
The Laravel IProxy package is open-sourced software licensed under the MIT license.
Feel free to modify this documentation as needed, adding more details, examples, or instructions specific to your package.