garrett9 / laravel-container-command
允许您在Docker容器中通过CLI执行Laravel命令。如果您的命令与Docker容器中托管的其它软件交互,则非常有用。
dev-main
2022-11-04 21:27 UTC
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-09-05 01:42:52 UTC
README
允许您在Docker容器中通过CLI执行Laravel命令。如果您的命令与Docker容器中托管的其它软件交互,则非常有用。
假设该包仅用于本地开发,因为在生产环境中运行的任何命令都应该已经在容器中。
安装
您可以通过composer安装此包
composer require garrett9/laravel-container-command
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="laravel-container-command-config"
使用方法
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}'; }
变更日志
请参阅变更日志以获取有关最近更改的更多信息。
贡献
请参阅贡献指南以获取详细信息。
安全漏洞
请参阅我们的安全策略了解如何报告安全漏洞。
鸣谢
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。