Download the PHP package taknone/phptgcalls without Composer
On this page you can find all versions of the php package taknone/phptgcalls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download taknone/phptgcalls
More information about taknone/phptgcalls
Files in taknone/phptgcalls
Package phptgcalls
Short Description A high-performance , non-blocking PHP library for Telegram Group Calls and WebRTC streaming via Rust
License MIT
Informations about the package phptgcalls
โก A blazing-fast PHP extension powered by Rust for Telegram voice/video calls โก
๐ฏ What is PhpTgCalls ?
PhpTgCalls is a native PHP extension built with Rust that brings Telegram voice & video calling capabilities directly into PHP. It wraps the powerful NTgCalls C++ library, providing a clean, object-oriented PHP API
It integrates seamlessly with LiveProto โ the async, pure-PHP MTProto Telegram client โ enabling you to join group calls, stream audio/video, and handle Telegram VoIP entirely from PHP
โจ Features
| Category | Feature |
|---|---|
| ๐๏ธ Core | Join group calls ( voice & video ) |
| ๐ฅ Media | Stream audio/video with H.264, VP8, VP9, AV1, Opus, AAC, MP3 |
| ๐บ Screen | Screen sharing & presentation mode |
| ๐ Async | Fully asynchronous โ built for Fibers & Swoole |
| ๐ Crypto | DH key exchange, encryption params, signaling |
| ๐ก Events | Stream, connection, upgrade, frame, and signaling event streams |
| โก Performance | Rust-powered native code, minimal overhead |
| ๐งฉ Ecosystem | First-class LiveProto integration |
๐๏ธ Architecture
๐ฆ Installation
Prerequisites
- PHP 8.4+
- Rust 1.96.0+
Using Composer
[!NOTE] Install the framework in your project :
[!NOTE] Then install the native extension :
From Source
[!NOTE] Clone the repository and install dependencies :
Extension Only
[!NOTE] If you already have the repository :
๐ Quick Start
๐ Integration with LiveProto
TgCalls is designed to work hand-in-hand with LiveProto :
| LiveProto | TgCalls |
|---|---|
| MTProto connection & auth | VoIP call management |
phone.joinGroupCall() |
TgcallsClient.create() + connect() |
| DH config retrieval | TgcallsClient.init_exchange() |
| Signaling relay | TgcallsClient.send_signaling_data() |
[!IMPORTANT] LiveProto handles the MTProto layer ( Telegram API ), while TgCalls handles the WebRTC/VoIP layer. Together, they provide a complete Telegram calling solution in PHP
๐งช Examples
- Explore the
example/directory
๐ค Contributing
We love contributions ! Here's how to get started :
- Fork this repository
- Create a feature branch :
git checkout -b feature/amazing-feature - Commit your changes :
git commit -m 'Add amazing feature' - Push to the branch :
git push origin feature/amazing-feature - Open a Pull Request
๐ฌ Community
Join the phptgcalls ecosystem :
| Platform | Link |
|---|---|
| ๐ฌ Telegram Chat | PhpTgCallsChat |
| ๐ Bug Reports | GitHub Issues |
๐ License
This project is licensed under the MIT License
All versions of phptgcalls with dependencies
taknone/asyncio Version *
taknone/bootstrapper Version *
taknone/liveproto Version *