PHP code example of demvsystems / exec
1. Go to this page and download the library: Download demvsystems/exec 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/ */
demvsystems / exec example snippets
echo Command::create()
->app('echo')
->input('Hello World')
->exec();
//prints out "Hello World"
$async = Command::create()
->app('echo')
->input('Hello World')
->async()
->exec();
$async = Command::create()
->app('echo')
->input('Hello World')
->async()
->path('hello.txt')
->exec();
Command::create()
->app('php')
->arg('v')
->exec();
Command::create()
->phpApp()
->arg('v')
->exec();