PHP code example of sp4ceb4r / shell-command

1. Go to this page and download the library: Download sp4ceb4r/shell-command library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sp4ceb4r / shell-command example snippets


$process = Process::make(Command::make('sleep')->withArgs(5))
    ->runAsync();
$process->wait(2);