Download the PHP package hadi-aj/v2ray-panels without Composer
On this page you can find all versions of the php package hadi-aj/v2ray-panels. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hadi-aj/v2ray-panels
More information about hadi-aj/v2ray-panels
Files in hadi-aj/v2ray-panels
Package v2ray-panels
Short Description A PHP client library for integrating with Sanaei and Marzban panels, providing a simple interface to manage and interact with VPN services programmatically.
License MIT
Informations about the package v2ray-panels
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
- 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?
- 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
Install via Composer:
π 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
βοΈ Key Features
- β Unified PHP API for both Sanaei and Marzban panels
- β Fully documented classes/interfaces powered by PHPDoc for IntelliSense
- β Client/inbound/tracking/subscription management with CRUD support
- β Traffic stats, usage limits, expiry notifications via Telegram bots or webhooks
- π Supports multi-node Marzban deployment and panel configuration features
- π Secure access with token-based authentication, SSL support, and safe HTTP operations
π Documentation & API Reference
Full API endpoints and parameter references are documented in PHPDoc. You can also inspect the original panel docs:
- Marzban: https://github.com/gozargah/marzban
- Sanaei (3xβUI): https://github.com/MHSanaei/3x-ui
π€ Contribution
Contributions are welcome! Suggestions, bug reports, or feature additions:
- Fork the repository
- Develop your feature or fix
- Submit a pull request
Please follow PSRβ12 coding standards and include relevant tests for new features.
π License
Licensed under MIT License. See LICENSE file in the repository.