PHPackages                             globaltriangles/shell-commander - 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. globaltriangles/shell-commander

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

globaltriangles/shell-commander
===============================

Extension that allows the execution of shell commands directly to the server supporting general output and errors

1.1.0(4y ago)0184Apache-2.0PHPPHP &gt;=5.3.0

Since Jun 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/globaltriangles/shell-commander)[ Packagist](https://packagist.org/packages/globaltriangles/shell-commander)[ RSS](/packages/globaltriangles-shell-commander/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

ShellCommander
==============

[](#shellcommander)

This is a small php composer plugin to execute shell commands with support of regular output and errors during execurtion

Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install shell-commander.

```
composer require globaltriangles/shell-commander
```

Usage
-----

[](#usage)

```
use ShellCommander\Commander;

//the string of the command to execute is this case a simple ls
$command = 'ls';

//Call the static method an Execute the command saving the outputs to a variable
$exec = Commander::exec($command);

if(! empty($exec['output'])) {
    //Do Something with the output string like so...
    echo $exec['output'];
}

if(! empty($exec['error'])) {
    //Do Something with the error string like so...
    echo $exec['error'];
}
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[Apace 2.0](https://www.apache.org/licenses/LICENSE-2.0)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Every ~91 days

Total

2

Last Release

1743d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8203017?v=4)[RodrigoJC](/maintainers/shak18)[@shak18](https://github.com/shak18)

---

Top Contributors

[![shak18](https://avatars.githubusercontent.com/u/8203017?v=4)](https://github.com/shak18 "shak18 (3 commits)")[![RodGTriangles](https://avatars.githubusercontent.com/u/86420549?v=4)](https://github.com/RodGTriangles "RodGTriangles (1 commits)")

### Embed Badge

![Health badge](/badges/globaltriangles-shell-commander/health.svg)

```
[![Health](https://phpackages.com/badges/globaltriangles-shell-commander/health.svg)](https://phpackages.com/packages/globaltriangles-shell-commander)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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