reich / async
Simple way to make async operations using PHP
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/reich/async
Requires
- php: >=5.6.0
- ext-pcntl: *
Requires (Dev)
- phpunit/phpunit: ^6.5
- symfony/var-dumper: ^3.4
This package is not auto-updated.
Last update: 2025-10-20 23:25:24 UTC
README
AsyncPHP
A simple way to make async operations using PHP
Installation
in the terminal:
composer require reich/async
Usage
To create a new thread:
$thread = new \AsyncPHP\Thread(function);
To join the thread to the main context:
$thread->join();
To get the currently running threads:
echo \AsyncPHP\Thread::$count
Note
This can only be used from the command line atm.