定制 danzabar/phalcon-cli 二次开发

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

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

danzabar/phalcon-cli

Composer 安装命令:

composer require danzabar/phalcon-cli

包简介

Tools that extend the functionality of the Phalcon frameworks CLI

README 文档

README

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

An expansion to the Phalcon Frameworks CLI Classes. This includes things like Questions, Confirmation, Command test class, Input/Output Streams and Application wrapper that allows you to start a CLI with minimal Effort.

Setting up your application

Setting up your CLI app is easy, heres a little example:

#!/usr/bin/env php
<?php 

$app = new Danzabar\CLI\Application;

// Add your Tasks
$app->add(new MyTask);

try {
	
	$app->start($argv);

} catch(\Exception $e) {
	
	echo $e->getMessage();
	exit(255);
}

Want to use your own DI instance? cool:

#!/usr/bin/env php
<?php 

$di = new Phalcon\DI;
$app = new Danzabar\CLI\Application($di);

$app->add(new Task);

$app->start($argv);

See the documentation below for more details, how to create task classes, setup argument and option variables and more...

Documentation

Look to the source

The source code and tests contain a lot of usage practises and tricks for using this, so if you are unsure, take a look it might point you in the right direction!

Contributing

If you want to contribute, great. Just fork this repo and make a pull request with changes.

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固