Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-05-18 (3 months ago) ![]() | Not enough user ratings | Total: 204 | All time: 8,330 This week: 271![]() |
Version | License | PHP version | Categories | |||
php_component_proces 1.0.12 | GNU Lesser Genera... | 5.3 | PHP 5, Unix, Language |
Description | Author | |
This package can run parallel processes and manage their execution. Recommendations What is the best PHP multithreading class? |
|
I still like the idea but there is currently no use case to develop it anymore.
This free as in freedom component easy up process forking and observing in php. It is using the memory limit manager as well as the time limit manager and the event dispatcher component as robust base.
The build status of the current master branch is tracked by Travis CI:
It is also available at openhub.net.
If you are running on an unix system, you can use "watch 'ps auxf | grep php'" to validate that threads where started.
mkdir -p vendor/net_bazzline/php_component_process_fork_manager
cd vendor/net_bazzline/php_component_process_fork_manager
git clone https://github.com/bazzline/php_component_process_fork_manager
composer require net_bazzline/php_component_process_fork_manager:dev-master
$factory = \Net\Bazzline\Component\ProcessForkManager\ForkManagerFactory();
$manager = $factory->create();
/ @var \Net\Bazzline\Component\ProcessForkManager\TaskInterface $task */
$task = new \My\Task();
$manager->addTask($task);
$manager->execute();
Thanks to apigen, the api is available in the document section or online.
The ForkManager itself gets multiple tasks attached. While executing, the fork manager keeps track of the current number of threads (working tasks) and time or memory limit. Depending on situation, the manager will shutdown itself. This can be reached by sending different posix signals (for example kill).
Following links to projects and pages to easy up stepping into process forking (in php). Thanks to all the great projects and pages out there.
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. Donate something if you love it :-].
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
![]() | php_component_proces-2021-05-18.zip 28KB |
![]() | php_component_proces-2021-05-18.tar.gz 17KB |
![]() | Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.