PHPackages                             abhijit/async-php - 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. abhijit/async-php

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

abhijit/async-php
=================

Run PHP asynchronously

04PHP

Since Jan 22Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

async-php
=========

[](#async-php)

This library is only supported in Laravel Framework.

In config/app.php, add - AsyncPHP\\AsyncPHPServiceProvider::class inside "providers"

class MyClass{

```
public $roll_nums;
public $standard;

public function __construct($roll_nums, $standard){
    $this->roll_nums = $roll_nums;
    $this->standard = $standard;
}

public function run(){
    sleep(2);
    logger()->info("Inside my class: ". Carbon::now()->format('Y-m-d H:i:s'));
}

```

}

$myClass1 = new MyClass(\["123", "234"\], 1); $myClass2 = new MyClass(\["123", "234"\], 2);

$thread1 = new Thread($myClass1); $thread2 = new Thread($myClass2);

//Either $thread1-&gt;start(); $thread2-&gt;start();

//OR $threadPool = new ThreadPool(\[$thread1, $thread2\]); $threadPool-&gt;execute();

Note: MyClass is just a representation of any Class that needs to be run as a separate Process. You can pass arguments of any data type and n-number of arguments to MyClass, except any "OBJECT" type. MyClass should contain a run() method. The code inside the run() method gets executed asynchronously.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9028188f2bd6c6804e5e56f24b3455ac6dc715a4f1f1294fc862a33d84ee6b3c?d=identicon)[Abhi\_tubai](/maintainers/Abhi_tubai)

---

Top Contributors

[![abhijit-sarkar](https://avatars.githubusercontent.com/u/23374564?v=4)](https://github.com/abhijit-sarkar "abhijit-sarkar (7 commits)")[![abhijitsarkar91](https://avatars.githubusercontent.com/u/140410437?v=4)](https://github.com/abhijitsarkar91 "abhijitsarkar91 (1 commits)")

### Embed Badge

![Health badge](/badges/abhijit-async-php/health.svg)

```
[![Health](https://phpackages.com/badges/abhijit-async-php/health.svg)](https://phpackages.com/packages/abhijit-async-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
