whagency/php-cli-framework 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

whagency/php-cli-framework

Composer 安装命令:

composer create-project whagency/php-cli-framework

包简介

PHP CLI framework

README 文档

README

PHP CLI framework - good console solution for developing and performing modules for regular tasks with CRON and casual one time tasks like operating with data of the remote databases, export and import popular datatypes, load and optimize images etc.

Directory structure

files/		contains files of all modules
tmp/		contains tempory files and logs
vendor/		contains dependent 3rd-party packages
webheads/	contains core classes of the framework and custom classes and libs

Included libs

  • PhpSpreadsheet - PHP library for reading and writing spreadsheet files
  • ActiveRecord - access data in a database
  • ImageWorkshop - library that helps you to manage images
  • TinyPNG - optimization images
  • CLImate - library for output colored text, special formats, and other in terminal
  • mPDF - generate PDF files from HTML with Unicode/UTF-8 and CJK support
  • cli-progress-bar - progress bar for cli apps

Installation

The preferred way to install this extension is through composer.

  1. Install framework to you directory, for example php-cli-framework
php composer.phar create-project --prefer-dist whagency/php-cli-framework php-cli-framework
  1. Go to the installation directory
cd php-cli-framework
  1. Run framework via console
php core
// base starting

php core info
// display all modules and action list

php core add
// add new module and/or action

php core module/action
// run my custom module/action
  1. Also, you can run framework in WEB mode with your web server
http://localhost/php-cli-framework/module/action

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-26