PHPackages                             fokosun/artisan-chain-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. fokosun/artisan-chain-commands

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

fokosun/artisan-chain-commands
==============================

Run multiple artisan commands all at once with a very short, simple and sweet syntax

v1.0.1(2y ago)310MITPHPPHP ^7.2.5|^8.0

Since Nov 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/fokosun/artisan-chain-commands)[ Packagist](https://packagist.org/packages/fokosun/artisan-chain-commands)[ RSS](/packages/fokosun-artisan-chain-commands/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (8)Versions (5)Used By (0)

### Chain Commands Artisan Command

[](#chain-commands-artisan-command)

This package helps to chain multiple artisan commands using a simple, easy to understand syntax.

### Example

[](#example)

```
php artisan chain-commands "make:controller TestController,make:event TestEvent"

```

This will run the make:controller and make:event artisan commands consecutively and displays the output in a table.

How to install
--------------

[](#how-to-install)

Run the following artisan command in the root of your Laravel project.

```
composer require fokosun/artisan-chain-commands

```

Lastly, add Artisan Chain Commands to the list of providers in `config/app` under providers:

```
'providers' => ServiceProvider::defaultProviders()->merge([
   ...
    \Fokosun\ArtisanChainCommands\Providers\ArtisanChainCommandsProvider::class,
    ...
])->toArray(),

```

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

[](#how-to-use)

You can chain multiple artisan commands with ease but there are a few commands that are not supported. See list below.

Ignored CommandDescriptionchain-commandsNot alloweddbThis opens a REPL (Read, Evaluate, Print and Loop) environment.\\nYou should not run this command with chain commands.docsThis opens the Laravel documentation page in a browser window.\\nYou should not run this command with chain commands.docs 1This opens the Laravel documentation page in a browser window.\\nYou should not run this command with chain commands.docs 2This opens the Laravel documentation page in a browser window.\\nYou should not run this command with chain commands.docs -- search queryThis opens the Laravel documentation page in a browser window.\\nYou should not run this command with chain commands..helpDisplays help for a command.\\nYou should not run this command with chain commands..serveNot allowed.testNot allowed.tinkerThis opens a REPL (Read, Evaluate, Print and Loop) environment.\\nYou should not run this command with chain commands..vendor:publishThis is an interactive command.\\nYou should not run this command with chain commands..schedule:workStarts the schedule worker.\\nYou should not run this command with chain commands.queue:workStarts processing jobs on the queue as a daemon.\\nYou should not run this command with chain commands.queue:restartRestarts queue worker daemons after their current job.\\nYou should not run this command with chain commands.queue:listenListens to a given queue.\\nYou should not run this command with chain commands.Artisan chain command will ignore these commands for the reasons outlined in the table above.

Shorthand commands
------------------

[](#shorthand-commands)

Artisan chain commands also ship with a few shorthand commands which are essentially a chain of commonly used commands to aid development. An example are the `'config:clear', 'cache:clear', 'view:clear'` commands combination. These can be run with just one single shorthand command. See list below:

```
'clear:ccv' => ['config:clear', 'cache:clear', 'view:clear'],
'clear:*' => ['config:clear', 'cache:clear', 'view:clear','event:clear', 'optimize:clear', 'queue:clear'],
'db:rms' => ['migrate:refresh', 'migrate', 'db:seed'],

```

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

[](#contributing)

This is opensource and contributions are highly welcome.

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~1 days

Total

3

Last Release

964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a6cc40b038a8d47c9ce56d2f3fd2db84d4f4b606403e65c2087416663c05796?d=identicon)[florenxe](/maintainers/florenxe)

---

Top Contributors

[![fokosun](https://avatars.githubusercontent.com/u/7254731?v=4)](https://github.com/fokosun "fokosun (12 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fokosun-artisan-chain-commands/health.svg)

```
[![Health](https://phpackages.com/badges/fokosun-artisan-chain-commands/health.svg)](https://phpackages.com/packages/fokosun-artisan-chain-commands)
```

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k456.0M2.3k](/packages/laravel-tinker)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.6k14](/packages/tallstackui-tallstackui)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)

PHPackages © 2026

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