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

v1.0 2018-03-24 23:36 UTC

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.