PHPackages                             pear/system\_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. pear/system\_command

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

pear/system\_command
====================

PHP commandline execution interface

v1.1.1(3y ago)13.0k1PHP-3.0PHP

Since Aug 25Pushed 3y ago11 watchersCompare

[ Source](https://github.com/pear/System_Command)[ Packagist](https://packagist.org/packages/pear/system_command)[ Docs](http://pear.php.net/package/System_Command)[ RSS](/packages/pear-system-command/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

System\_Command
===============

[](#system_command)

PHP commandline execution interface.

Running functions from the commandline can be risky if the proper precautions are not taken to escape the shell arguments and reaping the exit status properly.

This class provides a formal interface to both, so that you can run a system command as comfortably as you would run a PHP function, with full PEAR error handling as results on failure. It is important to note that this class, unlike other implementations, distinguishes between output to stderr and output to stdout. It also reports the exit status of the command.

So in every sense of the word, it gives PHP shell capabilities.

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

[](#installation)

```
$ composer require pear/system_command
```

Links
-----

[](#links)

Homepage[http://pear.php.net/package/System\_Command](http://pear.php.net/package/System_Command)Bug tracker[http://pear.php.net/bugs/search.php?cmd=display&amp;package\_name\[\]=System\_Command](http://pear.php.net/bugs/search.php?cmd=display&package_name[]=System_Command)Packagist[https://packagist.org/packages/pear/system\_command](https://packagist.org/packages/pear/system_command)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1017 days

Total

3

Last Release

1154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1323714f58f9144af310e5e4217e61b96ad7c42bc5c93a1f2d97deca95f6f4f8?d=identicon)[ashnazg](/maintainers/ashnazg)

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

---

Top Contributors

[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (9 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (5 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (3 commits)")[![mj](https://avatars.githubusercontent.com/u/5277?v=4)](https://github.com/mj "mj (2 commits)")

---

Tags

libraryphpwhich

### Embed Badge

![Health badge](/badges/pear-system-command/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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