PHPackages                             knutle/shell-exec - 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. knutle/shell-exec

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

knutle/shell-exec
=================

Execute shell commands with precision

v0.1.9(4y ago)0103[3 PRs](https://github.com/knutle/shell-exec/pulls)MITPHPPHP ^8.0

Since Jun 2Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (16)Versions (14)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

Execute shell commands with precision
=====================================

[](#execute-shell-commands-with-precision)

[![Latest Version on Packagist](https://camo.githubusercontent.com/779b31df2275a1b4ca4ea0131e7254895f685c1cc4336cef189fe6df82e8b331/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6e75746c652f7368656c6c2d657865632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knutle/shell-exec)[![GitHub Tests Action Status](https://camo.githubusercontent.com/000e9919f044641224c1cc4b773ad45c74e5fa42ad8ff129f57aa53cee53819f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b6e75746c652f7368656c6c2d657865632f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/knutle/shell-exec/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9211753b87bf13321513c51cb442d122c35666d0f1e213d24c39db47057dbcd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b6e75746c652f7368656c6c2d657865632f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/knutle/shell-exec/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2160e43efe83d5b4e97a50366188ac3bd89cf39df3dd26ad516b13e090cff92a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6e75746c652f7368656c6c2d657865632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knutle/shell-exec)

Execute commands and easily determine status, read standard output or error output separately. Comes with helpers for testing to mock output or set expectations for commands to receive.

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

[](#installation)

You can install the package via composer:

```
composer require knutle/shell-exec
```

Usage
-----

[](#usage)

See [tests](./tests).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Knut Leborg](https://github.com/knutle)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.6% 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 ~1 days

Total

10

Last Release

1480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1419066?v=4)[Knut Leborg](/maintainers/knutle)[@knutle](https://github.com/knutle)

---

Top Contributors

[![knutle](https://avatars.githubusercontent.com/u/1419066?v=4)](https://github.com/knutle "knutle (99 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravelknutleshell-exec

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/knutle-shell-exec/health.svg)

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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