承接 manufacturing-industry/perseus 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

manufacturing-industry/perseus

Composer 安装命令:

composer require manufacturing-industry/perseus

包简介

Perseus is a command line service runner based on Symfony Console

README 文档

README

#Perseus Perseus is a command line service runner boilerplate based on Symfony Console

##Installation Perseus is a PSR-4 compatible package. You can install it via composer as a package in your application.

####Composer

composer require manufacturing-industry/perseus

##First Time Use Create a new instance of Perseus in a empty php file and then run the following commands:

####Run the command line utility

php <myfile.php>

This will output the information about the command line utility.

####Build a Command Commands are built using the Symfony structure for console commands. These commands can be stored anywhere but must be in the Perseus Command namespace.

#####Required Namespace

Perseus\Console\Command
Example: Perseus\Console\Command\TestConsole
Example: The above namespace would translate to a class named Testconsole.

####Add Command to the Console You can easily add commands to the console by supplying an array of class names of your commands as the first argument to the class when constructing it.

#####Example PHP:

//commands is an array of class names that are symfony console commands in the perseus namespace
$commands = array('TestCommand', 'TestCommand2', 'AnotherCommand');
new Perseus($commands);

You can now run the file you have instantiated Persus within and run your console commands. Let's suppose that file is console.php

#####Example Perseus Commands

php console.php testcommand1:task1
php console.php testcommand2:update
php console.php another:run

##Found a Bug? Please report any bugs to the issues section.

##License & Author

#####License Information

#####Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固