PHPackages                             sven/artisan-shortcuts - 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/artisan-shortcuts

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

sven/artisan-shortcuts
======================

Register shortcuts for executing artisan commands.

v1.1.1(5y ago)553622[1 issues](https://github.com/svenluijten/artisan-shortcuts/issues)[1 PRs](https://github.com/svenluijten/artisan-shortcuts/pulls)MITPHPPHP ^8.0CI passing

Since Jun 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/svenluijten/artisan-shortcuts)[ Packagist](https://packagist.org/packages/sven/artisan-shortcuts)[ RSS](/packages/sven-artisan-shortcuts/feed)WikiDiscussions 1.x Synced yesterday

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

[![artisan-shortcuts](https://user-images.githubusercontent.com/11269635/41874111-3489070c-78c7-11e8-920a-de918c4a0cc4.jpg)](https://user-images.githubusercontent.com/11269635/41874111-3489070c-78c7-11e8-920a-de918c4a0cc4.jpg)

Laravel Artisan Shortcuts
=========================

[](#laravel-artisan-shortcuts)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ab730cc027a6fa107cb39eeb93aafd8ad7714d22c21874141fd17a98773f8c8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7376656e2f6172746973616e2d73686f7274637574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sven/artisan-shortcuts)[![Total Downloads](https://camo.githubusercontent.com/f28c3be50fb3de09649ff992a86051808f0ee960e7f10bc214d998a0341aba73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7376656e2f6172746973616e2d73686f7274637574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sven/artisan-shortcuts)[![Software License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a387f0955ae23c1379265abf6dd7d74acaa1b0971e18c1ca9b537baa2c9cf468/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7376656e6c75696a74656e2f6172746973616e2d73686f7274637574732f74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/svenluijten/artisan-shortcuts/actions/workflows/tests.yml)[![StyleCI](https://camo.githubusercontent.com/65bcfe1c2c9162575a35907b5926e659a3be862afd9caf2d54b02c4a4304c80f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133383432333738332f736869656c64)](https://styleci.io/repos/138423783)

Have you ever executed 2 or 3 artisan commands *over*, and *over*, and *over* in your Laravel projects? Me too! That's what prompted this package. With it, you can define "shortcuts" to bundle up those commonly used commands into short, memorable names (or long, convoluted ones, that's up to you!).

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

[](#installation)

You'll have to follow a couple of simple steps to install this package.

### Downloading

[](#downloading)

Via [composer](http://getcomposer.org):

```
$ composer require sven/artisan-shortcuts
```

Or add the package to your dependencies in `composer.json` and run `composer update` on the command line to download the package:

```
{
    "require": {
        "sven/artisan-shortcuts": "^1.0"
    }
}
```

### Registering the service provider

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

If you're [not using auto-discovery](https://laravel.com/docs/5.6/packages#package-discovery), register `Sven\ArtisanShortcuts\ServiceProvider::class` in your `config/app.php` file.

### Publishing the configuration file

[](#publishing-the-configuration-file)

To publish this package's configuration file, execute the following command and pick `Sven\ArtisanShortcuts\ServiceProvider` from the list:

```
$ php artisan vendor:publish
```

Usage
-----

[](#usage)

After publishing the configuration file, you can define your shortcuts in `config/shortcuts.php`. Knowing that, creating your own artisan shortcuts is fairly straightforward. Take a look at the following configuration:

```
return [
    'custom-command' => [
        FirstCommand::class => [
            '--option' => 'value',
        ],
        SecondCommand::class,
    ],
];
```

Running `php artisan custom-command` will execute `FirstCommand` with the option `--option=value`, and `SecondCommand` without any arguments or options.

Something I use this for all the time is [Barry van den Heuvel's `laravel-ide-helper` commands](https://github.com/barryvdh/laravel-ide-helper):

```
return [
    'ide' => [
        GeneratorCommand::class,
        ModelsCommand::class => ['--nowrite' => true],
        MetaCommand::class,
    ],
];
```

Instead of using the FQCN for the command classes, you can also use the command names:

```
return [
    'clear' => [
        'cache:clear',
        'config:clear',
        'view:clear',
    ],
];
```

Supported versions
------------------

[](#supported-versions)

Look at the table below to find out what versions of Laravel are supported on what version of this package:

LaravelArtisan Shortcuts`5.5` - `8.x``^1.0`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/artisan-shortcuts` is licensed under the MIT License (MIT). Please see the [license file](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance53

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 90.3% 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 ~344 days

Recently: every ~602 days

Total

9

Last Release

168d ago

PHP version history (3 changes)v1.0.0-beta1PHP ^7.1

v1.1.0PHP ^7.3

v1.1.1PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

artisanartisan-commandclicommand-linehacktoberfestlaravellaravel-5-packagelaravel-artisanlaravel-frameworklaravel-packagephpclilaravelartisanshortcutscommandslaravel artisanshorthands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sven-artisan-shortcuts/health.svg)

```
[![Health](https://phpackages.com/badges/sven-artisan-shortcuts/health.svg)](https://phpackages.com/packages/sven-artisan-shortcuts)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.7k348.7M10.4k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-menu

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

815424.6k52](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2592.3M13](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

672.2M4](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16357.3k8](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76128.8k1](/packages/rahul900day-laravel-console-spinner)

PHPackages © 2026

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