yasapurnama/php-shellrotation

v1.0.0 2022-01-25 13:42 UTC

This package is auto-updated.

Last update: 2024-10-26 22:23:07 UTC


README

GitHub release (latest by date) GitHub all releases GitHub license

php-shell-rotation

This package can easily determine which php shell function available to be execute.

Why?

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.

Installation

Install php-shellrotation via composer

  $ composer require yasapurnama/php-shellrotation

Shell Function

The package will use these functions if they are exist and can be used:

Basic Usage

use Yasapurnama\PhpShellRotation\Shell;

$shell  = new Shell();
$output = $shell->exec('ls -lah');

print_r($output);

Contributing

contributions-wellcome

Contributions are always welcome!

License

Licensed under the MIT License, see LICENSE for more information.