PHPackages                             hadi-aj/v2ray-panels - 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. hadi-aj/v2ray-panels

ActiveLibrary[API Development](/categories/api)

hadi-aj/v2ray-panels
====================

A PHP client library for integrating with Sanaei and Marzban panels, providing a simple interface to manage and interact with VPN services programmatically.

v1.0.0(9mo ago)13MITPHP

Since Aug 5Pushed 9mo agoCompare

[ Source](https://github.com/hadi-aj/v2ray-panels)[ Packagist](https://packagist.org/packages/hadi-aj/v2ray-panels)[ RSS](/packages/hadi-aj-v2ray-panels/feed)WikiDiscussions main Synced 1mo ago

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

V2Ray Panels PHP Client
=======================

[](#v2ray-panels-php-client)

A **PHP client library** for integrating with **Sanaei (3x‑UI)** and **Marzban** proxy/V2Ray/Xray management panels — providing a unified, code-friendly interface for panel automation.

🔧 Overview
----------

[](#-overview)

- Designed to work with the **3x‑UI (Sanaei panel)** and **Marzban** proxies management systems developed in Go/JS/Python.
- Exposes REST API access via PHP classes with type hints and PHPDoc for full IDE auto-completion and static analysis.
- Ideal for automating user management, client subscriptions, traffic monitoring, panel configuration, backups, and Telegram bot integrations.

🚀 Why Use This Library?
-----------------------

[](#-why-use-this-library)

- Seamlessly integrates with panels like 3x‑UI/Sanaei and Marzban.
- Provides strongly-typed PHP classes to consume both panel APIs—no need to manually craft HTTP requests.
- PHPDoc-enhanced, so modern IDEs (PHPStorm, VSCode, etc.) offer parameter hints, return types, and in-line documentation.

🧩 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require hadi-aj/v2ray-panels
```

🗂 Panel Support
---------------

[](#-panel-support)

- **3x‑UI (Sanaei panel)**: A fork of X‑UI supporting multi-protocol V2Ray/Xray inbound configuration, traffic limits, expiry, and more.
- **Marzban panel**: A modern GUI for Xray-core with REST API, multi-node support, share link generation, CLI, webhook, Telegram bot and system monitoring.

💡 Usage Examples
----------------

[](#-usage-examples)

```
