PHP Classes

PTM: Manage PHP tasks running in parallel processes

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 307 All time: 7,349 This week: 660Up
Version License PHP version Categories
ptm 2.2GNU General Publi...5.3PHP 5, Unix, Language
Description 

Author

This class can manage PHP tasks running in parallel processes.

It can fork the current process to run one or more parallel processes that execute given PHP code.

The class can also do other operations like checking if a task is still running, remove a task, exchange data between tasks.

It requires the pcntl extension, so it only runs on Linux and other Unix-like operating systems.

Picture of Sildaekar Decrura
Name: Sildaekar Decrura <contact>
Classes: 2 packages by
Country: United States United States
Age: 34
All time rank: 2668366 in United States United States
Week rank: 164 Up23 in United States United States Up

Screenshots (1)  
  • Flowchart.jpg
  Files folder image Files (16)  
File Role Description
Files folder imagedocs (5 files)
Files folder imagetaskmanager (3 files, 1 directory)
Accessible without login Plain text file example.php Example Example 1
Accessible without login Plain text file example2.php Example Example 2
Accessible without login Plain text file example3.php Example Example 3
Accessible without login Plain text file example4.php Example Example 4
Accessible without login Plain text file example5.php Example Example 5

  Files folder image Files (16)  /  docs  
File Role Description
  Accessible without login Plain text file changelog.txt Doc. Changelog
  Accessible without login Plain text file CreatingaTask.txt Doc. Creating a Task
  Accessible without login Image file Flowchart.jpg Photo Flowchart
  Accessible without login Plain text file ReadMe.txt Doc. ReadMe File
  Accessible without login Plain text file Usage.txt Doc. Usage

  Files folder image Files (16)  /  taskmanager  
File Role Description
Files folder imagetasks (2 files)
  Accessible without login Plain text file container.php Aux. Container
  Plain text file manager.task.php Class Task Manager
  Plain text file worker.task.php Class Worker

  Files folder image Files (16)  /  taskmanager  /  tasks  
File Role Description
  Accessible without login Plain text file helloworld.task.php Example Hello World Task
  Accessible without login Plain text file helloworld2.task.php Example Hello World 2 Task

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:307
This week:0
All time:7,349
This week:660Up
User Comments (1)
5 examples are empty screens for output
12 years ago (synthetron)
35%StarStar