PHP Classes

PHP Asynchronous Command: Get commands output without waiting to finish

Recommend this page to a friend!
  Info   View files Documentation   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 65%Total: 513 All time: 5,732 This week: 102Up
Version License PHP version Categories
asynchronous-command 1.1BSD License5.5PHP 5, Unix, Language, Windows


This class can get commands output without waiting for them to be finished.

It can execute external commands asynchronously and get their output on demand using pipes, even before the command have finished its execution.

The class can perform other operations like changing the current directory of the program, send data as input to the program, kill the program or send other signals.

It supports command execution on both Windows and Linux (or other Unix environments) using the pcntl extension.

Innovation Award
PHP Programming Innovation award nominee
April 2016
Number 5

Prize: SourceGuarding PHP encoder tool
PHP has functions that allow developers to run external programs started from PHP scripts and communicate with the programs via pipes.

However, if you want to communicate interactively with those programs without having to wait for them to finish, you need to use non-blocking stream to be able to send and receive data to the programs while they are still running.

This class can simplify that task by starting any external program to be run in parallel and perform send and receive data operations without blocking each other, making it easy to process the programs output while they are running and still be able to send input data at the same time.

It supports running programs either in Linux or Windows.

Manuel Lemos
Picture of Christian Vigh
  Performance   Level  
Name: Christian Vigh <contact>
Classes: 32 packages by
Country: France France
Age: 57
All time rank: 13810 in France France
Week rank: 10 Up1 in France France Up
Innovation award
Innovation award
Nominee: 20x

Winner: 3x


  Files folder image Files  
File Role Description
Files folder imageexamples (4 files)
Plain text file AsynchronousCommand.php Class Source file
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file NOTICE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file askforinput.php Example Example script
  Accessible without login Plain text file example.find.php Example Example script
  Accessible without login Plain text file example.input.php Example Example script
  Accessible without login Plain text file Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,732
This week:102Up
 User Ratings  
 All time