PHPackages                             on-org/onlineproxy-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. on-org/onlineproxy-api

ActiveLibrary[API Development](/categories/api)

on-org/onlineproxy-api
======================

php onlineproxy api client

1.0.1(1y ago)01MITPHPPHP &gt;=7.1|8.1|8.2|8.3|8.4

Since Nov 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/on-org/onlineproxy-php-api)[ Packagist](https://packagist.org/packages/on-org/onlineproxy-api)[ RSS](/packages/on-org-onlineproxy-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

OnlineProxy PHP API
===================

[](#onlineproxy-php-api)

[![Packagist](https://camo.githubusercontent.com/5b7840fae12a69716eec0b3be4780750ab07fda33eb16e54c31b584410cd9542/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e2d6f72672f6f6e6c696e6570726f78792d6170692e737667)](https://packagist.org/packages/on-org/onlineproxy-api)

A PHP wrapper for managing proxies from [OnlineProxy.io](https://onlineproxy.io).

🌟 Features
----------

[](#-features)

- 🌐 **Proxy Management**: Easily manage proxies from OnlineProxy.io in your PHP projects.
- 🛠️ **Simple Integration**: Straightforward setup and usage with clear, concise methods.
- 📚 **Comprehensive API Support**: Access to a wide range of API functionalities, including managing proxies, fetching user balance, and ordering proxies.
- 🐞 **Bug Reporting**: Quickly report issues through GitHub.

✨ Introduction
--------------

[](#-introduction)

`OnlineProxy PHP API` simplifies the integration of proxy management services into PHP applications. Its intuitive methods and straightforward design allow developers to focus on building applications without worrying about low-level HTTP integrations.

⚙️ Installation
---------------

[](#️-installation)

To use the library in your PHP project, simply include the classes manually or through a PSR-4 autoloader (e.g., Composer):

```
composer require on-org/onlineproxy-php-api
```

🗂 Quick Setup
-------------

[](#-quick-setup)

### Initialize the API Client

[](#initialize-the-api-client)

```
require 'vendor/autoload.php';

use onOrg\OnlineProxyApi\OnlineProxyApi;

$apiKey = 'your_api_key_here';
$locale = 'en'; // 'en', 'ru', or null for default
$devId = null;  // Optional developer ID

$client = new OnlineProxyApi($apiKey, $locale, $devId);
```

🛠️ Methods
----------

[](#️-methods)

### 🌍 `getProxyList`

[](#-getproxylist)

- **Description**: Retrieves a list of all available proxies.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/proxies)\] \[[en](https://onlineproxy.io/documentation/api/get/proxies)\].
- **Example**:

```
$proxies = $client->getProxyList();
print_r($proxies);
```

---

### 🌐 `getProxy`

[](#-getproxy)

- **Description**: Retrieves details about a specific proxy by its ID.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/proxies_id_)\] \[[en](https://onlineproxy.io/documentation/api/get/proxies_id_)\].
- **Parameters**:
    - `id` (string): The ID of the proxy.
- **Example**:

```
$proxyId = 'proxy_id_here';
$proxy = $client->getProxy($proxyId);
print_r($proxy);
```

---

### 💰 `getUserBalance`

[](#-getuserbalance)

- **Description**: Retrieves the current user balance.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/balance)\] \[[en](https://onlineproxy.io/documentation/api/get/balance)\].
- **Example**:

```
$balance = $client->getUserBalance();
print_r($balance);
```

---

### 🔄 `rotateProxy`

[](#-rotateproxy)

- **Description**: Rotates the IP address of an active proxy.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/rotate)\] \[[en](https://onlineproxy.io/documentation/api/get/rotate)\].
- **Example**:

```
$rotationResult = $client->rotateProxy();
print_r($rotationResult);
```

---

### 💬 `createOrUpdateProxyComment`

[](#-createorupdateproxycomment)

- **Description**: Adds or updates a comment for a specific proxy.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/post/proxies_id__comment)\] \[[en](https://onlineproxy.io/documentation/api/post/proxies_id__comment)\].
- **Parameters**:
    - `id` (string): The ID of the proxy.
    - `comment` (string): The comment to add or update.
- **Example**:

```
$proxyId = 'proxy_id_here';
$comment = 'New comment';
$result = $client->createOrUpdateProxyComment($proxyId, $comment);
print_r($result);
```

---

### 📋 `getAvailableProxiesForOrder`

[](#-getavailableproxiesfororder)

- **Description**: Fetches a list of proxies available for order.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/filters)\] \[[en](https://onlineproxy.io/documentation/api/get/filters)\].
- **Example**:

```
$availableProxies = $client->getAvailableProxiesForOrder();
print_r($availableProxies);
```

---

### 🛒 `orderProxy`

[](#-orderproxy)

- **Description**: Orders a new proxy.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/post/order)\] \[[en](https://onlineproxy.io/documentation/api/post/order)\].
- **Parameters**:
    - `orderData` (array): An array of order details.
- **Example**:

```
$orderData = [
    'proxyType' => 'HTTP',
    'quantity' => 1,
    'location' => 'USA',
];
$orderResult = $client->orderProxy($orderData);
print_r($orderResult);
```

---

### 📊 `getProxyTariffs`

[](#-getproxytariffs)

- **Description**: Retrieves available proxy tariffs.
- **Documentation**: \[[ru](https://onlineproxy.io/ru/documentation/api/get/tariffs)\] \[[en](https://onlineproxy.io/documentation/api/get/tariffs)\].
- **Example**:

```
$tariffs = $client->getProxyTariffs();
print_r($tariffs);
```

---

📚 Additional Resources
----------------------

[](#-additional-resources)

- **[OnlineProxy.io](https://onlineproxy.io)**: Official website for managing proxies.
- **[GitHub Repository](https://github.com/on-org/onlineproxy-php-api)**: View the source code and contribute to the project.
- **[Documentation](https://onlineproxy.io/documentation/api/info)**: Comprehensive API documentation.

🐞 Reporting Issues
------------------

[](#-reporting-issues)

If you encounter any issues or have suggestions for improvements, please create an issue on our [GitHub repository](https://github.com/on-org/onlineproxy-php-api/issues).

---

Happy coding with `OnlineProxy PHP API`!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b58c344f6f895edc186de3097331fc96b852a970403edde4c9bbb50bd60388e6?d=identicon)[s00d](/maintainers/s00d)

---

Top Contributors

[![s00d](https://avatars.githubusercontent.com/u/2684895?v=4)](https://github.com/s00d "s00d (7 commits)")

---

Tags

apiclientonlineproxy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/on-org-onlineproxy-api/health.svg)

```
[![Health](https://phpackages.com/badges/on-org-onlineproxy-api/health.svg)](https://phpackages.com/packages/on-org-onlineproxy-api)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
