Download the PHP package taknone/asyncio without Composer
On this page you can find all versions of the php package taknone/asyncio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download taknone/asyncio
More information about taknone/asyncio
Files in taknone/asyncio
Package asyncio
Short Description A high-performance async framework for PHP supporting Swoole and Revolt loops
License MIT
Informations about the package asyncio
Asyncio
Modern Async Foundations for PHP
High-performance asynchronous framework for PHP with support for Revolt and Swoole
✨ Features
- High-performance asynchronous execution for modern PHP projects
- Event-loop driven architecture
- Compatible with Revolt and Swoole
- Fiber-friendly async design
- Non-blocking file, socket, and stream utilities
- Lightweight helpers for building async-first applications
-
MIT licensed and easy to integrate into existing codebases
-
- *
🛠️ Requirements
- PHP 8.4 or higher
revolt/event-loop : ^1.0- Optional :
ext-swoolefor high-performance coroutine support -
Optional :
ext-pcntlfor better signal handling -
- *
📦 Installation
Install via Composer :
Optional Extensions
| Extension | Purpose |
|---|---|
| Swoole | High-performance coroutine runtime |
| PCNTL | Better signal handling |
🏁 Getting Started
The library is designed to be used with async-friendly code, event loops, Fibers, and non-blocking I/O
💈 Project Structure
This package is autoloaded through PSR-4 with the Tak\\Asyncio\\ namespace and includes helper files for :
src/functions.phpsrc/File/functions.phpsrc/Socket/functions.phpsrc/ByteStream/functions.php
That layout is ideal for helper-based async APIs that cover core runtime, file, socket, and stream operations
⁉️ Why Asyncio
Asyncio is built for developers who want a clean async layer without sacrificing PHP performance or portability. It is a good fit for :
- async services
- background workers
- socket servers
- file streaming
- high-concurrency I/O
-
coroutine-based applications
-
- *
⚡ Usage Notes
- Use Revolt when you want a standards-friendly event loop
- Use Swoole when you want coroutine-based high-performance execution
- Keep I/O non-blocking to get the best results
-
Prefer async helpers instead of direct blocking calls inside loop-driven code
-
- *
Contributing
Contributions are welcome. Please keep changes consistent with the existing architecture, naming style, and async-first design
📜 License
This project is licensed under the MIT License