garrett9 / laravel-container-command
Allows you to execute Laravel commands from your CLI in a Docker container. Useful if your command interacts with other software hosted in your Docker container.
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-04-05 00:41:15 UTC
README
Allows you to execute Laravel commands from your CLI in a Docker container. Useful if your command interacts with other software hosted in your Docker container.
The assumption is that this package will only ever be used for local development since any commands you run in production should already be in the container.
Installation
You can install the package via composer:
composer require garrett9/laravel-container-command
You can publish the config file with:
php artisan vendor:publish --tag="laravel-container-command-config"
Usage
use Garrett9\ContainerCommand\Commands\ContainerCommand; class SendRegisterInvitation extends ContainerCommand { /** * The name and signature of the console command. * * @var string */ protected $signature = 'my:command {parameter1} {parameter2}'; }
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.