PHP code example of provision-ops / power-process

1. Go to this page and download the library: Download provision-ops/power-process 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/ */

    

provision-ops / power-process example snippets


// Include autoloader
s IO.
$input = new \Symfony\Component\Console\Input\ArgvInput($argv);
$output = new \Symfony\Component\Console\Output\ConsoleOutput();

// Replace Style with your own to change the output style.
$io = new ProvisionOps\Tools\Style($input, $output);

// Run any command.
$command = 'ls -la';
$process = new ProvisionOps\Tools\PowerProcess($command, $io);
$process->run();
bash
php demo.php