PHPackages                             abogdan/shelly - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. abogdan/shelly

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

abogdan/shelly
==============

Shelly is a small library that lets you abstract your shell commands using PHP.

010PHP

Since Dec 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/abogdan/shelly)[ Packagist](https://packagist.org/packages/abogdan/shelly)[ RSS](/packages/abogdan-shelly/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Shelly
======

[](#shelly)

Shelly is a small library that lets you abstract your shell commands using PHP.

### Version

[](#version)

0.1.0

### Installation

[](#installation)

You need [Composer](https://getcomposer.org/) to install the lib:

```
"require": {
        ...
        "abogdan/shelly": "dev-master",
        ...
    },
```

```
composer require abogdan/shelly:dev-master
```

### Examples

[](#examples)

```
use ABogdan\Shelly\Command\CompositeCommand;
use ABogdan\Shelly\Command\SimpleCommand;
use ABogdan\Shelly\Builder;
use ABogdan\Shelly\Executor;
$seq = new \PhpCollection\Sequence();

//simple example
$cat = new SimpleCommand('cat', [__FILE__]);
$executor = new Executor(new Builder());
$output = $executor->execute($cat);

//composite example
$find = new SimpleCommand('find', ['./tests/', '-name', 'Command*'], true);
$cat = new SimpleCommand('cat');
$grep = new SimpleCommand('grep', ['-r', PHP_EOL]);
$seq->add($find);
$seq->add($cat);
$seq->add($grep);
$output = $executor->execute($complex);
```

### Todo's

[](#todos)

- Windows support
- Better error handling
- Better binary/executable finder
- Better building strategy
- ...

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a89f33a39d31b92e44382f5bd7511dc62ec8fe6fbe5c27c44f6f73bb77ddc88?d=identicon)[abogdan](/maintainers/abogdan)

---

Top Contributors

[![abogdan](https://avatars.githubusercontent.com/u/7317355?v=4)](https://github.com/abogdan "abogdan (7 commits)")

### Embed Badge

![Health badge](/badges/abogdan-shelly/health.svg)

```
[![Health](https://phpackages.com/badges/abogdan-shelly/health.svg)](https://phpackages.com/packages/abogdan-shelly)
```

###  Alternatives

[koala-framework/sourcemaps

Sourcemaps Utities

1564.3k2](/packages/koala-framework-sourcemaps)

PHPackages © 2026

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