PHPackages                             jinraynor1/threading - 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. jinraynor1/threading

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

jinraynor1/threading
====================

simulate threads

v0.0.2(7y ago)074MITPHPPHP &gt;=5.3.0

Since Jan 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jinraynor1/threading)[ Packagist](https://packagist.org/packages/jinraynor1/threading)[ RSS](/packages/jinraynor1-threading/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Threads (fork)
==============

[](#threads-fork)

simulate threads using pcntl posix

- Features:
    - Can set queue size
    - Can pass messages from childs to parent

Example
=======

[](#example)

```
$queue = new ThreadQueue(function ($number) {
            return pow($number, 2);

});

$queue->enableMessaging(true);

$queue->add(1);
$queue->add(3);

$queue->wait();
$results = $queue->results();
$sum = array_sum($results);

// $sums now holds 9
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~482 days

Total

2

Last Release

2611d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc1078b55c8477cc995361a3f86c8cc49a1a389b43158ff3d3173df33d3d3af7?d=identicon)[jinraynor1](/maintainers/jinraynor1)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/polyfill-php56

Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions

1.6k208.5M28](/packages/symfony-polyfill-php56)[pear/pear-core-minimal

Minimal set of PEAR core files to be used as composer dependency

8078.0M77](/packages/pear-pear-core-minimal)[webgriffe/sylius-table-rate-shipping-plugin

Provides table rate shipping calculator.

1492.4k](/packages/webgriffe-sylius-table-rate-shipping-plugin)[cebe/luya-module-sitemap

sitemap.xml module for luya CMS

116.0k](/packages/cebe-luya-module-sitemap)

PHPackages © 2026

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