whagency/php-cli-framework

PHP CLI 框架

1.0.2 2018-06-26 12:05 UTC

This package is auto-updated.

Last update: 2024-09-19 15:24:30 UTC


README

PHP CLI 框架 - 适用于开发和使用 CRON 和一次性任务(如操作远程数据库的数据、导出和导入流行数据类型、加载和优化图片等)的良好的控制台解决方案。

目录结构

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

包含的库

安装

安装此扩展的首选方式是通过 composer

  1. 将框架安装到您的目录中,例如 php-cli-framework
php composer.phar create-project --prefer-dist whagency/php-cli-framework php-cli-framework
  1. 进入安装目录
cd php-cli-framework
  1. 通过控制台运行框架
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. 此外,您还可以使用您的 Web 服务器以 WEB 模式运行框架
https:///php-cli-framework/module/action