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 3w 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 72% 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

1201d 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

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)[roundcube/roundcubemail

The Roundcube Webmail suite

7.1k2.4k3](/packages/roundcube-roundcubemail)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/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)
