PHPackages                             taknone/asyncio - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. taknone/asyncio

ActiveLibrary[Queues &amp; Workers](/categories/queues)

taknone/asyncio
===============

A high-performance async framework for PHP supporting Swoole and Revolt loops

v0.0.10(1mo ago)1684MITPHPPHP &gt;=8.4

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/TakNone/Asyncio)[ Packagist](https://packagist.org/packages/taknone/asyncio)[ RSS](/packages/taknone-asyncio/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (4)

 [![Asyncio](https://camo.githubusercontent.com/ec590ed3b18e79686dd269ba4b3f7788e485e07a08347b85620f8d5ef2e371a1/68747470733a2f2f736b696c6c69636f6e732e6465762f69636f6e733f693d706870)](https://camo.githubusercontent.com/ec590ed3b18e79686dd269ba4b3f7788e485e07a08347b85620f8d5ef2e371a1/68747470733a2f2f736b696c6c69636f6e732e6465762f69636f6e733f693d706870)

 Asyncio
=========

[](#--asyncio)

 **Modern Async Foundations for PHP**

 High-performance asynchronous framework for PHP with support for **Revolt** and **Swoole**

 [![](https://camo.githubusercontent.com/af1688c9beec3fcbbdcaab7ff21a0d38b6889c26ee1e3dd6b595873f8eef9812/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f54616b4e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/af1688c9beec3fcbbdcaab7ff21a0d38b6889c26ee1e3dd6b595873f8eef9812/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f54616b4e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765) [![](https://camo.githubusercontent.com/9c2ae7c9ff1c7482bf5faf18051b74511074c4f1a02000399e6fef86bdf6337d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f74616b6e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://camo.githubusercontent.com/9c2ae7c9ff1c7482bf5faf18051b74511074c4f1a02000399e6fef86bdf6337d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f74616b6e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765266c6f676f3d706870) [![](https://camo.githubusercontent.com/36933bab30497e31c0ff88795b577514f59cad572430b21b42a15689221df818/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616b6e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6d706f736572)](https://camo.githubusercontent.com/36933bab30497e31c0ff88795b577514f59cad572430b21b42a15689221df818/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616b6e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6d706f736572) [![](https://camo.githubusercontent.com/4b4e05604c83608f4c54be05b553e0d8ae5a68db3415c8b3ff6d9e03a6f37c9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f54616b4e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/4b4e05604c83608f4c54be05b553e0d8ae5a68db3415c8b3ff6d9e03a6f37c9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f54616b4e6f6e652f6173796e63696f3f7374796c653d666f722d7468652d6261646765)

---

✨ Features
----------

[](#-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
---------------

[](#️-requirements)

- PHP **8.4** or higher
- `revolt/event-loop : ^1.0`
- Optional : `ext-swoole` for high-performance coroutine support
- Optional : `ext-pcntl` for better signal handling

---

📦 Installation
--------------

[](#-installation)

Install via Composer :

```
composer require taknone/asyncio
```

### Optional Extensions

[](#optional-extensions)

```
pecl install swoole
```

ExtensionPurposeSwooleHigh-performance coroutine runtimePCNTLBetter signal handling---

🏁 Getting Started
-----------------

[](#-getting-started)

The library is designed to be used with async-friendly code, event loops, Fibers, and non-blocking I/O

```
