This package can easily determine which php shell function available to be execute.
Mostly web hosting nowadays will disable various php shell function like system(), exec(), shell_exec(), passthru()
. This package will help to find which php shell function that still exist then use it to execute shell command.
Install php-shellrotation via composer
$ composer require yasapurnama/php-shellrotation
The package will use these functions if they are exist and can be used:
use Yasapurnama\PhpShellRotation\Shell;
$shell = new Shell();
$output = $shell->exec('ls -lah');
print_r($output);
Contributions are always welcome!
Licensed under the MIT License, see LICENSE for more information.