定制 crochetfeve0251/rocket-launcher-builder 二次开发

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

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

crochetfeve0251/rocket-launcher-builder

最新稳定版本:v3.1.0

Composer 安装命令:

composer require crochetfeve0251/rocket-launcher-builder

包简介

CLI library for the Launchpad framework

README 文档

README

Launchpad CLI is the library containing the CLI tool used to generate new files in the Launchpad framework.

Installation

To install the library first launch the following command: composer require launchpad/cli --dev

Then at the root from your project you can create a builder file with the following content:

#!/usr/bin/php
<?php
use LaunchpadCLI\AppBuilder;

require_once __DIR__ . '/vendor/autoload.php';

AppBuilder::init(__DIR__);

Usage

With this commandline the following command are available:

  • subscriber: Generate a subscriber file and attach it to the project.
  • provider: Generate a service provider file and attach it to the project.
  • test: Generate a test file.
  • table: Generate files for adding a new table to the project.
  • fixture: Generate a fixture file and attach it to the project.

Subscriber

To create a subscriber run the following command: subscriber Namespace/MyClass.

On the subscriber command the following options are available:

Option Short option Value Short value Default Description
type t common c true Common subscriber that load on both administration view and front
type t admin a false Common subscriber that load only on administration view
type t front f false Common subscriber that load only on front

Provider

To create a service provider run the following command: provider Namespace/MyClass.

Test

To create tests matching all public functions from a class run the following command: test Namespace/MyClass.

To create tests matching a single function from a class run the following commad: test Namespace/MyClass::my_method.

On the test command the following options are available:

Option Short option Value Short value Default Description
type t both b true Create both unit and integration tests
type t unit u false Create unit tests
type t integration i false Create integration tests
group g your value your value false Add a group to tests
expected e present p false Force the expected parameter on tests
expected e absent a false Force the expected parameter to be absent on tests
scenarios s value1,value2 value1,value2 false Add scenarios to the fixtures from the tests
external x your value your value false Add external run for integration tests

Table

To create a service provider run the following command: table my_table Mynamespace.

Fixture

To create a service provider run the following command: fixture MyClass.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-02-20