PHPackages                             parallel/parallel - 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. parallel/parallel

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

parallel/parallel
=================

PHP library for execute functions in parallel.

v1.0.1(2y ago)11.3k↓50%MITPHPPHP &gt;=8.0

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/LorenzoRizzolo/ParallelPhp)[ Packagist](https://packagist.org/packages/parallel/parallel)[ RSS](/packages/parallel-parallel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

 [![BotAPI Logo](https://camo.githubusercontent.com/95bdb80e8c00939d5b22cf034ef24171ed05ac0419512db42d0a3d87aa0a438f/68747470733a2f2f7170682e6366322e71756f726163646e2e6e65742f6d61696e2d71696d672d37646538356564346262353231653064376366386265376366346133646537352d6c71 "BotAPI Logo")](https://camo.githubusercontent.com/95bdb80e8c00939d5b22cf034ef24171ed05ac0419512db42d0a3d87aa0a438f/68747470733a2f2f7170682e6366322e71756f726163646e2e6e65742f6d61696e2d71696d672d37646538356564346262353231653064376366386265376366346133646537352d6c71)

 [![Latest Version on Packagist](https://camo.githubusercontent.com/1837e693be571b37b5e6dd44ebfed7b9f4f8489545526af8b23289b55fb8d427/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c656772616d73646b2f626f746170692e7376673f6c6162656c3d636f6d706f736572266c6f676f3d636f6d706f736572 "Latest Version on Packagist")](https://camo.githubusercontent.com/1837e693be571b37b5e6dd44ebfed7b9f4f8489545526af8b23289b55fb8d427/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656c656772616d73646b2f626f746170692e7376673f6c6162656c3d636f6d706f736572266c6f676f3d636f6d706f736572) [![PHP Version](https://camo.githubusercontent.com/1f6ddfe2e7115eac9b69ec9284bcf0f5da63e86b28fbb5b4d2823a31f29ee399/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74656c656772616d73646b2f626f746170692f7068703f6c6f676f3d706870 "PHP Version")](https://camo.githubusercontent.com/1f6ddfe2e7115eac9b69ec9284bcf0f5da63e86b28fbb5b4d2823a31f29ee399/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74656c656772616d73646b2f626f746170692f7068703f6c6f676f3d706870)

🛠 Installation
==============

[](#-installation)

You can install the package using composer:

```
composer require parallel/parallel
```

❔ Usage
=======

[](#-usage)

After installation yoi can use this library using composer:

```
// require the autoload file of vendor to import the library
require_once __DIR__."/vendor/autoload.php";

// select the class in the name space parallel/parallel
use parallel\parallel\Thread;

// create the new object of Thread class
$thread = new Thread();

// create a function to esecute in background
function function_name(){  }

// you can pass an existing function as parameter or create a new function directly when you call the method start
$thread->start('function_name');
$thread->start(function(){  });

// if you use the method join it will wait the end of the new process created and then it will continue with the code.
$thread->join();
```

📝 Testing
=========

[](#-testing)

There are few tests ready for use in test/ directory Try some examples:

```
# try from example_01 to 03
composer example_N
```

⚖️ License
==========

[](#️-license)

This project is under the [MIT License](https://github.com/LorenzoRizzolo/ParallelPhp/blob/main/LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

788d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/098b0adacea3b0e125564d62b66e9b522fd3854f57d3aa91afa2d274d4940874?d=identicon)[LorenzoRizzolo](/maintainers/LorenzoRizzolo)

---

Top Contributors

[![LorenzoRizzolo](https://avatars.githubusercontent.com/u/122774067?v=4)](https://github.com/LorenzoRizzolo "LorenzoRizzolo (13 commits)")

---

Tags

asynctimeparallelthreads

### Embed Badge

![Health badge](/badges/parallel-parallel/health.svg)

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

###  Alternatives

[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

92343.6M138](/packages/revolt-event-loop)[amphp/parallel

Parallel processing component for Amp.

85046.2M74](/packages/amphp-parallel)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[aza/thread

AzaThread - Anizoptera CMF simple and powerful threads emulation component for PHP (based on forks).

7128.7k2](/packages/aza-thread)[amphp/cluster

Building multi-core network applications with PHP.

6224.8k1](/packages/amphp-cluster)[orisai/scheduler

Cron job scheduler - with locks, parallelism and more

4037.1k4](/packages/orisai-scheduler)

PHPackages © 2026

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