PHPackages                             axsor/laravel-executor - 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. axsor/laravel-executor

ActiveLibrary

axsor/laravel-executor
======================

Command line facade

1.0.0(6y ago)02051GPL-3.0-or-laterPHPPHP &gt;=7.2

Since Aug 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sorribes22/laravel-executor)[ Packagist](https://packagist.org/packages/axsor/laravel-executor)[ RSS](/packages/axsor-laravel-executor/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel executor
================

[](#laravel-executor)

[![Latest Stable Version](https://camo.githubusercontent.com/68b2ee167dcad314f1d4ab5a0d17290031dc1e0cb0b5077faed3046986a70629/68747470733a2f2f706f7365722e707567782e6f72672f6178736f722f6c61726176656c2d6578656375746f722f762f737461626c652e706e67)](https://packagist.org/packages/axsor/laravel-executor)[![Build Status](https://camo.githubusercontent.com/e5fe2470a04ff818cf0c9d358f6d36d65ec2e9d2c10d3c1097e2e6e9f9718eb8/68747470733a2f2f7472617669732d63692e6f72672f736f72726962657332322f6c61726176656c2d6578656375746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sorribes22/laravel-executor)[![StyleCI](https://camo.githubusercontent.com/1f108b6ee90cdd5b8ac2098cbe21fc4d648d68ee69fa7dbe153dcdce9301ef8f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3230343434383336312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/204448361)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1e23769d8e1de79294337d1b1de44ad36a9e3a7a38051a6b14b9ab7cc5e2ce70/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f72726962657332322f6c61726176656c2d6578656375746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sorribes22/laravel-executor/?branch=master)

Laravel executor is a very simple facade to [system](https://www.php.net/manual/es/function.system.php) PHP command. It makes possible to [mock](https://laravel.com/docs/5.8/mocking#mocking-facades)the result of the command execution without run it using a [facade](https://laravel.com/docs/5.8/facades)

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

[](#installation)

Install it via composer:

`composer require axsor/laravel-executor`

If you are using Laravel 5.4 or lower you must add ExecutorServiceProvider to your `config/app.php`:

```
'providers' => [
    Axsor\Executor\ExecutorServiceProvider::class,
],
```

Higher versions will [auto-discover](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518) it.

How to use
----------

[](#how-to-use)

```
use Axsor\Executor\Facades\Executor;

class MyTests extends TestCase
{
    public function test_my_functionality()
    {
        Executor::shouldReceive('run')->with('ping google.com', 1)->once()->andReturn("PING google.com (172.217.17.14) 56(84) bytes of data.
        64 bytes from mad07s09-in-f14.1e100.net (172.217.17.14): icmp_seq=1 ttl=51 time=25.9 ms");

        $result = 1;
        $return = Executor::run('ping google.com', $result);

        $this->assertEquals(1, $result);
        $this->assertEquals("PING google.com (172.217.17.14) 56(84) bytes of data.
64 bytes from mad07s09-in-f14.1e100.net (172.217.17.14): icmp_seq=1 ttl=51 time=25.9 ms", $return);
    }
}
```

License
-------

[](#license)

[GPL-3.0](./LICENSE)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cf4c7b28e214ca0005daa9e1235edf29238bd182b3083554785a964877c994b?d=identicon)[sorribes22](/maintainers/sorribes22)

---

Top Contributors

[![sorribes22](https://avatars.githubusercontent.com/u/23049412?v=4)](https://github.com/sorribes22 "sorribes22 (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axsor-laravel-executor/health.svg)

```
[![Health](https://phpackages.com/badges/axsor-laravel-executor/health.svg)](https://phpackages.com/packages/axsor-laravel-executor)
```

PHPackages © 2026

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