baisam / artisan-bash-completion-plugin by realeff

Artisan Completion for the Laravel framework.
2,012
0
1
Package Data
Maintainer Username: realeff
Package Create Date: 2017-05-22
Package Last Update: 2017-06-16
Language: PHP
License: MIT
Last Refreshed: 2024-05-03 15:05:13
Package Statistics
Total Downloads: 2,012
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

artisan-bash-completion-plugin for Composer

This is an experimental hack to add Symfony BASH auto complete to Composer via a plugin. It's a pretty slimy hack, but it works without editing Composer's code.

Installation

  1. Run composer require baisam/artisan-bash-completion-plugin dev-master

  2. Add a completion class to App\Console\Kernel :

    # The Artisan commands provided by your application.
    protected $commands = [
            \BaiSam\Component\Symfony\Console\BashCompletion\ArtisanCompletionCommand::class,
        ];
    

Explanation

This hacky plugin injects an additional command into the Artisan application at runtime. When the plugin in this package is activated and the command line starts with php artisan _completion.