PHPackages                             yasapurnama/php-shellrotation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. yasapurnama/php-shellrotation

ActiveLibrary[CLI &amp; Console](/categories/cli)

yasapurnama/php-shellrotation
=============================

PHP shell rotation

v1.0.0(4y ago)11.0k1MITPHP

Since Jan 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yasapurnama/php-shellrotation)[ Packagist](https://packagist.org/packages/yasapurnama/php-shellrotation)[ RSS](/packages/yasapurnama-php-shellrotation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Determine Available PHP Shell
=============================

[](#determine-available-php-shell)

[![GitHub release (latest by date)](https://camo.githubusercontent.com/81545e322bcffabfabebcf9d1eddac6e8f3928ca7df08f2bf304f2834ca3663d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f796173617075726e616d612f7068702d7368656c6c726f746174696f6e)](https://camo.githubusercontent.com/81545e322bcffabfabebcf9d1eddac6e8f3928ca7df08f2bf304f2834ca3663d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f796173617075726e616d612f7068702d7368656c6c726f746174696f6e)[![GitHub all releases](https://camo.githubusercontent.com/cedee4ed83d0ecdfba99f94ee4401a8dff1a5470f9e22a6e55e86296328cf588/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f796173617075726e616d612f7068702d7368656c6c726f746174696f6e2f746f74616c)](https://camo.githubusercontent.com/cedee4ed83d0ecdfba99f94ee4401a8dff1a5470f9e22a6e55e86296328cf588/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f796173617075726e616d612f7068702d7368656c6c726f746174696f6e2f746f74616c)[![GitHub license](https://camo.githubusercontent.com/606bf0a7de9e096c03cdc206f72ba52cfa245898316a06443e9d8ee4ef8e28b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f796173617075726e616d612f7068702d7368656c6c726f746174696f6e)](https://github.com/yasapurnama/php-shellrotation/blob/master/LICENSE)

[![php-shell-rotation](https://user-images.githubusercontent.com/12730759/150984587-d746d54f-87ec-4bbd-86c3-c2bbc3e98287.png)](https://user-images.githubusercontent.com/12730759/150984587-d746d54f-87ec-4bbd-86c3-c2bbc3e98287.png)

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

Why?
----

[](#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
------------

[](#installation)

Install php-shellrotation via composer

```
  $ composer require yasapurnama/php-shellrotation
```

Shell Function
--------------

[](#shell-function)

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

- [System](https://www.php.net/manual/en/function.system.php)
- [Exec](https://www.php.net/manual/en/function.exec.php)
- [ShellExec](https://www.php.net/manual/en/function.shell-exec.php)
- [Backtick](https://www.php.net/manual/en/language.operators.execution.php)
- [Passthru](https://www.php.net/manual/en/function.passthru.php)
- [Popen](https://www.php.net/manual/en/function.popen.php)
- [ProcOpen](https://www.php.net/manual/en/function.proc-open.php)

Basic Usage
-----------

[](#basic-usage)

```
use Yasapurnama\PhpShellRotation\Shell;

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

print_r($output);
```

Contributing
------------

[](#contributing)

[![contributions-wellcome](https://user-images.githubusercontent.com/12730759/150999538-d6872478-96ab-42d6-bb58-0ae443f514c8.svg)](https://user-images.githubusercontent.com/12730759/150999538-d6872478-96ab-42d6-bb58-0ae443f514c8.svg)

Contributions are always welcome!

License
-------

[](#license)

Licensed under the MIT License, see [LICENSE](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1573d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/875d5fa1a26e770e8cc04cd3d9663cc384244acb0a9810b6814cec939028f35e?d=identicon)[yasapurnama](/maintainers/yasapurnama)

---

Top Contributors

[![yasapurnama](https://avatars.githubusercontent.com/u/12730759?v=4)](https://github.com/yasapurnama "yasapurnama (6 commits)")

---

Tags

existfunctionphprotateshellphpshellfunctionrotateexist

### Embed Badge

![Health badge](/badges/yasapurnama-php-shellrotation/health.svg)

```
[![Health](https://phpackages.com/badges/yasapurnama-php-shellrotation/health.svg)](https://phpackages.com/packages/yasapurnama-php-shellrotation)
```

###  Alternatives

[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[dawood/phpchromepdf

A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface

14980.5k](/packages/dawood-phpchromepdf)[ollyxar/php-malware-detector

PHP malware detector

12926.4k](/packages/ollyxar-php-malware-detector)[jyxo/php

Jyxo PHP Library

6460.8k](/packages/jyxo-php)[dawood/phpscreenrecorder

A slim PHP wrapper around ffmpeg to record screen,best for recording your acceptance test using selenium, easy to use and clean OOP interface

501.5k](/packages/dawood-phpscreenrecorder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
