PHPackages                             apinstein/shell-command - 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. apinstein/shell-command

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

apinstein/shell-command
=======================

A generic wrapper for execution of shell command to make it easy to horizontally scale such work.

v2.0.2(9y ago)228.0k2[3 PRs](https://github.com/apinstein/ShellCommand/pulls)MITPHPPHP &gt;=5.2.0

Since Feb 28Pushed 9y ago5 watchersCompare

[ Source](https://github.com/apinstein/ShellCommand)[ Packagist](https://packagist.org/packages/apinstein/shell-command)[ Docs](http://github.com/apinstein/ShellCommand)[ RSS](/packages/apinstein-shell-command/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (22)Used By (0)

ShellCommand
============

[](#shellcommand)

A generic wrapper for execution of shell command to make it easy to horizontally scale such work.

Security Notice
===============

[](#security-notice)

This code is not expected to accept arbitrary user input. If you create a ShellCommand without using escapeshellarg() and escapeshellcmd() then you are using this insecurely.

The reason we don't do this in ShellCommand is that escapeshellcmd() neuters pipes and redirection, and escapeshellarg() requires parsing which would introduce its own security risks.

Therefore we just punt on security and tell you to sanitize your inputs before creating a ShellCommand.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% 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 ~101 days

Recently: every ~82 days

Total

16

Last Release

3308d ago

Major Versions

v1.2.x-dev → v2.0.02017-04-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/d82a90dde25fb8a17ce0d42be996017c40701e714f63e00ec2ce953b3ae23b51?d=identicon)[apinstein](/maintainers/apinstein)

---

Top Contributors

[![apinstein](https://avatars.githubusercontent.com/u/34889?v=4)](https://github.com/apinstein "apinstein (24 commits)")[![woofyman99](https://avatars.githubusercontent.com/u/357084?v=4)](https://github.com/woofyman99 "woofyman99 (4 commits)")[![jasonbouffard](https://avatars.githubusercontent.com/u/181576?v=4)](https://github.com/jasonbouffard "jasonbouffard (1 commits)")[![lorennorman](https://avatars.githubusercontent.com/u/17697?v=4)](https://github.com/lorennorman "lorennorman (1 commits)")[![parisholley](https://avatars.githubusercontent.com/u/399289?v=4)](https://github.com/parisholley "parisholley (1 commits)")

---

Tags

shelljob

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apinstein-shell-command/health.svg)

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

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[mikehaertl/php-shellcommand

An object oriented interface to shell commands

32437.5M61](/packages/mikehaertl-php-shellcommand)[kevinlebrun/colors.php

Colors for PHP CLI scripts

3426.7M45](/packages/kevinlebrun-colorsphp)[mrrio/shellwrap

Use any command-line tool as a PHP function.

738198.8k2](/packages/mrrio-shellwrap)[alecrabbit/php-console-spinner

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

24032.0k2](/packages/alecrabbit-php-console-spinner)[stepanenko3/nova-command-runner

Laravel Nova tool for running Artisan and bash(shell) commands.

36983.0k](/packages/stepanenko3-nova-command-runner)

PHPackages © 2026

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