PHPackages                             pardnchiu/async - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pardnchiu/async

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pardnchiu/async
===============

PD\\Async is a PHP library using ReactPHP to perform asynchronous tasks, supporting task dependency handling and topological sorting.

1.0.0(1y ago)212MITPHPPHP &gt;=7.4

Since Feb 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pardnchiu/PHP-Async)[ Packagist](https://packagist.org/packages/pardnchiu/async)[ RSS](/packages/pardnchiu-async/feed)WikiDiscussions main Synced 1mo ago

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

PD\\Async
=========

[](#pdasync)

> PD\\Async is a PHP library using ReactPHP to perform asynchronous tasks, supporting task dependency handling and topological sorting.

[![tag](https://camo.githubusercontent.com/07d4775f9a428b29d7f341b0104590f95096d5f18eba51e4087d9c4d528f99d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7461672d5048502532304c6962726172792d626234343434)](https://camo.githubusercontent.com/07d4775f9a428b29d7f341b0104590f95096d5f18eba51e4087d9c4d528f99d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7461672d5048502532304c6962726172792d626234343434)[![size](https://camo.githubusercontent.com/b83fe766cd41d1f6341aff85b4eae8d9574e4e7236ad29a726f0c84290e9e88e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73697a652f706172646e636869752f5048502d4173796e632f7372632f4173796e632e706870)](https://camo.githubusercontent.com/b83fe766cd41d1f6341aff85b4eae8d9574e4e7236ad29a726f0c84290e9e88e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73697a652f706172646e636869752f5048502d4173796e632f7372632f4173796e632e706870)
[![version](https://camo.githubusercontent.com/04e8a5d97ed0a4f12d84bc5c443285b159bebe481089887c7c3cac845fdeb12d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706172646e636869752f6173796e63)](https://camo.githubusercontent.com/04e8a5d97ed0a4f12d84bc5c443285b159bebe481089887c7c3cac845fdeb12d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706172646e636869752f6173796e63)[![download](https://camo.githubusercontent.com/72c5a76f7a084939bdf2908d95519c3098f0972ff7ec2a9494e92982aa418b61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f706172646e636869752f6173796e63)](https://camo.githubusercontent.com/72c5a76f7a084939bdf2908d95519c3098f0972ff7ec2a9494e92982aa418b61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f706172646e636869752f6173796e63)

Features
--------

[](#features)

- Asynchronous Task Execution
- Handling of Task Dependencies
- Ensuring correct execution order via Topological Sorting

Key Capabilities
----------------

[](#key-capabilities)

- Non-blocking Task Processing
- Task Dependency Management
- Smart Execution Ordering
- Promise Error Handling
- Flexible Task Configuration

Dependencies
------------

[](#dependencies)

- `react/promise` - Promise/A+ for PHP
- `react/event-loop` - Event Loop Library for PHP

How to Use
----------

[](#how-to-use)

### Install

[](#install)

```
composer require pardnchiu/async
```

```
