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 1mo 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

910d 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.4k423.8M1.8k](/packages/laravel-tinker)[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M685](/packages/drush-drush)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)

PHPackages © 2026

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