PHP code example of folleah / shellrun
1. Go to this page and download the library: Download folleah/shellrun 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/ */
folleah / shellrun example snippets
namespace Folleah\Shellrun;
untime = (new Command('php'))
->withArg('-a')
->runtime();
$runtime->write("echo 'test';");
$runtime->read();
/**
* Interactive mode enabled
* test
*/