PHPackages                             webmaniacs.net/lib-fork - 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. webmaniacs.net/lib-fork

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

webmaniacs.net/lib-fork
=======================

Lib fork processes in PHP and allow multi-threading. Inspired by duncan3dc/fork-helper

112PHP

Since Mar 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/webmaniacs-net/lib-fork)[ Packagist](https://packagist.org/packages/webmaniacs.net/lib-fork)[ RSS](/packages/webmaniacsnet-lib-fork/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

lib-fork
========

[](#lib-fork)

Install the latest version with `composer require webmaniacs.net/lib-fork`

Examples
--------

[](#examples)

```
$manager = new \wmlib\fork\Manager(function(array $error) {
    print_r($error);
    die('Child process error');
});
$manager->setNotifier($notifier = new \wmlib\fork\Notifier\Shm());

$manager->child(function (\wmlib\fork\INotifier $notifier, $var) {
    echo 'Start '.getmypid()."\n";
    echo 'Echo from child process with '.$var.' value!';
    sleep(1);
    echo 'End '.getmypid()."\n";
}, ['var' => 'value']);

while($manager->loop(10)) {
    // run 10 forked childs in infinite loop
    // Manager will handle childs count
    usleep(10000);
}
echo "End\n";
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10487711?v=4)[Stas Dovgodko](/maintainers/stas-dovgodko)[@stas-dovgodko](https://github.com/stas-dovgodko)

---

Top Contributors

[![stas-dovgodko](https://avatars.githubusercontent.com/u/10487711?v=4)](https://github.com/stas-dovgodko "stas-dovgodko (5 commits)")

### Embed Badge

![Health badge](/badges/webmaniacsnet-lib-fork/health.svg)

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

###  Alternatives

[digitoimistodude/air-helper

Plugin provides helpful functions and modifications for WordPress projects.

555.8k2](/packages/digitoimistodude-air-helper)[groe/craft-sitemap

Craft plugin to generate a sitemap.

231.1k](/packages/groe-craft-sitemap)

PHPackages © 2026

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