定制 eaperezc/blacksmith 二次开发

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

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

eaperezc/blacksmith

Composer 安装命令:

composer require eaperezc/blacksmith

包简介

A CLI command structure for your php processes

README 文档

README

CircleCI

To see the full documentation of the library please go to: Blacksmith Documentation Page

PHP Command Line Interface helper library

This library is intended to help developer to create easily CLI commands using php. It is based on the laravel artisan command but totally independent from it.

This is how the terminal looks when you run:

php blacksmith help

Alt text

Creating a Command

To create a new command, just run:

php blacksmith make:cmd hooray

This will create a file in your-project/commands/Hooray.php. If the /commands directory does not yet exist at the time of creating your first command, Blacksmith will automatically generate it for you.

Organizing Commands

We recommend organizing your commands into subdirectories to keep better track of which command does what. Fortunately, this is easy to do with Blacksmith. To generate a command into a subdirectory just provide the desired path you would like the command to reside in:

php blacksmith make:cmd path/to/hooray

This will generate a file in the following location:

your-project/commands/path/to/Hooray.php

Even if the subdirectories you specified don't exist, they will be created automatically by Blacksmith. The ending path node hooray is considered the command and is where you'll be able to add your command logic.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固