baisam / artisan-bash-completion-plugin
Artisan Completion for the Laravel framework.
Installs: 2 012
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/baisam/artisan-bash-completion-plugin
Requires
- composer-plugin-api: ^1.0
- stecman/symfony-console-completion: ~0.7.0
This package is not auto-updated.
Last update: 2025-10-04 00:39:27 UTC
README
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
-
Run
composer require baisam/artisan-bash-completion-plugin dev-master
-
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
.