two-thirds/artisan-anywhere
最新稳定版本:2.0.0
Composer 安装命令:
composer require two-thirds/artisan-anywhere
包简介
README 文档
README
Add Laravel Artisan to anything! Simply require through composer, drop a file in the root of your project and register any commands that you want available. This is a simple way to add custom utility commands ( like CI or stubbing content ) to non-Laravel projects ( like packages or other frameworks ).
Installation
Composer
Laravel Artisan Anywhere can be installed through composer:
composer require --dev two-thirds/artisan-anywhere
Create Artisan File
Add an artisan file to the root of your project with the following content and add your commands to the registerCommands array:
#!/usr/bin/env php
<?php
require 'vendor/autoload.php';
$artisan = new TwoThirds\ArtisanAnywhere\Artisan(__DIR__);
$artisan->registerCommands([
Illuminate\Foundation\Console\TestMakeCommand::class,
]);
exit($artisan->handle());
统计信息
- 总下载量: 680
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-13