All Projects → svenluijten → artisan-shortcuts

svenluijten / artisan-shortcuts

Licence: MIT license
🍰 Register shortcuts to execute multiple artisan commands

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to artisan-shortcuts

laravel-migrate-check
An artisan command to check for pending migrations with proper exit code
Stars: ✭ 53 (-5.36%)
Mutual labels:  laravel-package, artisan, artisan-command
Auth Tests
Always-current tests for Laravel's authentication system. Curated by the community.
Stars: ✭ 230 (+310.71%)
Mutual labels:  laravel-framework, laravel-package, laravel-5-package
Laravel Gitscrum
GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
Stars: ✭ 2,686 (+4696.43%)
Mutual labels:  laravel-framework, laravel-package, laravel-5-package
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (+483.93%)
Mutual labels:  laravel-package, artisan, laravel-5-package
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-71.43%)
Mutual labels:  laravel-framework, laravel-package, laravel-5-package
Laraupdater
Enable Laravel App Self-Update. Allow your Laravel Application to auto-update itself.
Stars: ✭ 75 (+33.93%)
Mutual labels:  laravel-framework, laravel-package, laravel-5-package
pretty-routes
Display your Laravel routes in the console, but make it pretty. 😎
Stars: ✭ 627 (+1019.64%)
Mutual labels:  laravel-framework, artisan, artisan-command
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (+253.57%)
Mutual labels:  laravel-framework, laravel-package, laravel-5-package
Laravel User Activity
Monitor user activity easily!
Stars: ✭ 253 (+351.79%)
Mutual labels:  laravel-framework, laravel-package
laravel-admin
Laravel Admin panel with theme , modules ,artisan commands and helper classess.Laravel admin boilerplate with theme and modules
Stars: ✭ 22 (-60.71%)
Mutual labels:  laravel-framework, artisan-command
flash
An easy way for Laravel flash notifications.
Stars: ✭ 14 (-75%)
Mutual labels:  laravel-package, laravel-5-package
laravel-smart-facades
Strategy design pattern in laravel, the easiest way.
Stars: ✭ 84 (+50%)
Mutual labels:  laravel-framework, laravel-package
laravel-tinker
Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Stars: ✭ 123 (+119.64%)
Mutual labels:  artisan, artisan-command
voyager-page-blocks
A module to provide page blocks for Voyager 📝
Stars: ✭ 80 (+42.86%)
Mutual labels:  laravel-package, laravel-5-package
laravel-two-factor-authentication
A two-factor authentication package for Laravel >= 8
Stars: ✭ 37 (-33.93%)
Mutual labels:  laravel-package, laravel-5-package
Laracrud
Laravel Code Generator based on MySQL Database
Stars: ✭ 238 (+325%)
Mutual labels:  laravel-framework, laravel-5-package
voyager-portfolio
A Portfolio Module for Laravel Voyager 💋
Stars: ✭ 15 (-73.21%)
Mutual labels:  laravel-package, laravel-5-package
laravel-jwt-auto-installer
A Laravel Library that let's you add tymon jwt auth library and all it's features with single command
Stars: ✭ 19 (-66.07%)
Mutual labels:  laravel-framework, laravel-package
sweetalert
Laravel 5 Package for SweetAlert2. Use this package to easily show sweetalert2 prompts in your laravel app.
Stars: ✭ 28 (-50%)
Mutual labels:  laravel-package, laravel-5-package
artisan-remote
Artisan Remote is a package for Laravel to interact with your Artisan Commands via an HTTP API.
Stars: ✭ 69 (+23.21%)
Mutual labels:  laravel-package, artisan

artisan-shortcuts

Laravel Artisan Shortcuts

Latest Version on Packagist Total Downloads Software License Build Status StyleCI

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

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

Downloading

Via composer:

$ 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

If you're not using auto-discovery, register Sven\ArtisanShortcuts\ServiceProvider::class in your config/app.php 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

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:

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

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

Laravel Artisan Shortcuts
5.5 - 8.x ^1.0

Contributing

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

License

sven/artisan-shortcuts is licensed under the MIT License (MIT). Please see the license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].