PHPackages                             sven/laravel-chained-commands - 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. sven/laravel-chained-commands

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

sven/laravel-chained-commands
=============================

Chain Laravel artisan commands together

v1.0.0(2y ago)04MITPHPPHP ^8.1

Since Aug 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/svenluijten/laravel-chained-commands)[ Packagist](https://packagist.org/packages/sven/laravel-chained-commands)[ RSS](/packages/sven-laravel-chained-commands/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

Laravel Chained Commands
========================

[](#laravel-chained-commands)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2431e601892cdc4cc0586f0d1e1fb459849b506cdcc93e5efccc9b07099ed4a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7376656e2f6c61726176656c2d636861696e65642d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sven/laravel-chained-commands)[![Total Downloads](https://camo.githubusercontent.com/4b2284d0c432e3a43fe8195c112e87de1dbb27bee3c4965a2e0490d38470e0da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7376656e2f6c61726176656c2d636861696e65642d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sven/laravel-chained-commands/stats)[![Software License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ecd8166d82e334be96c507ae488d16238967f45b50fbf2e91ed13242d88216aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7376656e6c75696a74656e2f6c61726176656c2d636861696e65642d636f6d6d616e64732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/svenluijten/laravel-chained-commands/actions/workflows/run-tests.yml)[![StyleCI](https://camo.githubusercontent.com/abed8075a269962fd65498554f22ef6ec865f9d9be53f91316f51ee7fb80526d/68747470733a2f2f7374796c6563692e696f2f7265706f732f3638303533353836312f736869656c64)](https://styleci.io/repos/680535861)[![PhpStan](https://camo.githubusercontent.com/b6026159c3b8dd3b35b995a5748bf76ec7f748fcc0820245202177733b5a9a30/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2d656e61626c65642d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpstan/phpstan)

Note

I found this unfinished code on my computer. Figured I'd publish it in case anyone would find it useful. Don't expect a lot. I also won't be merging PRs or checking issues. **You're on your own, kid**.

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

[](#installation)

You can install this package via [Composer](http://getcomposer.org):

```
composer require sven/laravel-chained-commands
```

### Registering the service provider

[](#registering-the-service-provider)

Next, add the `ServiceProvider` to your `providers` array in `config/app.php`:

```
'providers' => [
    ...
    Sven\LaravelChainedCommands\ServiceProvider::class,
];
```

If you would like to load this package in certain environments only, take a look at [`sven/env-providers`](https://github.com/svenluijten/env-providers).

Usage
-----

[](#usage)

Publish the configuration file:

```
php artisan vendor:publish --provider="Sven\\LaravelChainedCommands\\ServiceProvider"
```

You should now have a new file at `config/chained-commands.php` where you can define your command chains:

```
return [
    RootCommand::class => [
        FirstCommand::class => ['argument' => 'value'],
        SecondCommand::class => ['--option' => 'option-value', '--boolean-option' => false],
        ThirdCommand::class,
    ],
];
```

Note

Be wary of your command chains "going in circles", where commands `A` and `B` both call each other. If this happens, an exception will be thrown.

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

[](#contributing)

All contributions (pull requests, issues and feature requests) are welcome. Make sure to read through the [CONTRIBUTING.md](CONTRIBUTING.md) first, though. See the [contributors page](../../graphs/contributors) for all contributors.

License
-------

[](#license)

`sven/laravel-chained-commands` is licensed under the MIT License (MIT). Please see the [license file](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~219 days

Total

2

Last Release

778d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6682e025b83b7a93b4d43c5c9b0b2245d790d72352758c47b81ba14858f45a8a?d=identicon)[svenluijten](/maintainers/svenluijten)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

artisanlaravellaravel-packagephpphp-librarylaravelartisanchainingcommands

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sven-laravel-chained-commands/health.svg)

```
[![Health](https://phpackages.com/badges/sven-laravel-chained-commands/health.svg)](https://phpackages.com/packages/sven-laravel-chained-commands)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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