All Projects → duncan3dc → fork-helper

duncan3dc / fork-helper

Licence: Apache-2.0 License
A PHP helper to fork processes and allow multi-threading

Programming Languages

PHP
23972 projects - #3 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to fork-helper

Mirai
Mirai 未来 - A powerful Minecraft Server Software coming from the future
Stars: ✭ 325 (+371.01%)
Mutual labels:  fork
synapse
Non-intrusive C++ signal programming library
Stars: ✭ 48 (-30.43%)
Mutual labels:  multi-threading
TAOMP
《多处理器编程的艺术》一书中的示例代码实现,带有注释与单元测试
Stars: ✭ 39 (-43.48%)
Mutual labels:  multi-threading
table2pojo
Generate POJOs for database table/columns
Stars: ✭ 16 (-76.81%)
Mutual labels:  multi-threading
superfast
⚡ SuperFast codecs for fre:ac
Stars: ✭ 59 (-14.49%)
Mutual labels:  multi-threading
anon
The Official Repository for ANON cryptocurrency
Stars: ✭ 19 (-72.46%)
Mutual labels:  fork
Master-Thesis
Deep Reinforcement Learning in Autonomous Driving: the A3C algorithm used to make a car learn to drive in TORCS; Python 3.5, Tensorflow, tensorboard, numpy, gym-torcs, ubuntu, latex
Stars: ✭ 33 (-52.17%)
Mutual labels:  multi-threading
glfwm
GLFW Manager - C++ wrapper with multi-threading
Stars: ✭ 60 (-13.04%)
Mutual labels:  multi-threading
Fibrous
Concurrency library for .Net
Stars: ✭ 47 (-31.88%)
Mutual labels:  multi-threading
react-redux-fork
React Redux, but just up to 98x faster. (Forked from 6.0) Make React Redux great again!
Stars: ✭ 62 (-10.14%)
Mutual labels:  fork
fullstackDevelopment
Material & Projects related to full stack development
Stars: ✭ 90 (+30.43%)
Mutual labels:  fork
cucumber-performance
A performance testing framework for cucumber
Stars: ✭ 28 (-59.42%)
Mutual labels:  multi-threading
firedragon-browser
A fork of Librewolf with enhanced KDE integration, saner defaults & custom branding 🐉 (mirrored from GitLab)
Stars: ✭ 93 (+34.78%)
Mutual labels:  fork
mastodo
A fork of the GNU Social/AP-compatible microblogging server
Stars: ✭ 29 (-57.97%)
Mutual labels:  fork
jsonpyes
The tool which imports raw JSON to ElasticSearch in one line of commands
Stars: ✭ 67 (-2.9%)
Mutual labels:  multi-threading
FreakFortressBat
No longer supported.
Stars: ✭ 32 (-53.62%)
Mutual labels:  fork
chia-rosechain
chiarose(XCR) based on chia(XCH) source code fork, open source public chain
Stars: ✭ 378 (+447.83%)
Mutual labels:  fork
MemoryAllocator.KanameShiki
Fast multi-threaded memory allocator
Stars: ✭ 73 (+5.8%)
Mutual labels:  multi-threading
request store rails
📦 Per-request global storage for Rails prepared for multi-threaded apps
Stars: ✭ 78 (+13.04%)
Mutual labels:  multi-threading
tachiyomiJ2K
Free and open source manga reader for Android
Stars: ✭ 1,431 (+1973.91%)
Mutual labels:  fork

fork-helper

Simple class to fork processes in PHP and allow multi-threading.

Full documentation is available at https://duncan3dc.github.io/fork-helper/
PHPDoc API documentation is also available at https://duncan3dc.github.io/fork-helper/api/

release build coverage

Quick Example

Run some code asynchronously:

$fork = new \duncan3dc\Forker\Fork;

$fork->call(function () {
    for ($i = 1; $i <= 3; $i++) {
        echo "Process A - " . $i . "\n";
        sleep(1);
    }
});
$fork->call(function () {
    for ($i = 1; $i < 3; $i++) {
        echo "Process B - " . $i . "\n";
        sleep(1);
    }
});

sleep(1);
echo "Waiting for the threads to finish...\n";
$fork->wait();
echo "End\n";

Read more at https://duncan3dc.github.io/fork-helper/

Changelog

A Changelog has been available since version 2.0.0

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter

duncan3dc/fork-helper for enterprise

Available as part of the Tidelift Subscription

The maintainers of duncan3dc/fork-helper and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].