定制 railken/lara-command-test 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

railken/lara-command-test

Composer 安装命令:

composer require railken/lara-command-test

包简介

关键字:

README 文档

README

Build Status License

A laravel package to call commands that have prompt inputs

Simple usage

use Illuminate\Console\Command;

class DummyCommand extends Command
{

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        if ($this->confirm("Should we go?")) {

            $response = $this->ask('Is it hello?');
            
            return $response === 'Hello' ? 1 : 0;
        }

        return 0;
    }
}
use Railken\LaraCommandTest\Helper;

$helper = new Helper(__DIR__ . "/../var/cache");
$command = $helper->generate(DummyCommand::class, [
    'yes',
    'Hello'
]);
$helper->call($command, []);

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固