Skip to content

bullsoft/fp-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phalcon+ common module

This is a standard Phalcon+ CLI-Mode Module, as is a common part of falconplus.

how to use ?

...:APP_ROOT$ ./common/bin/fp-devtool command arg1 arg2 arg3

可用命令如下:

--------------------------------------------------------------------------------------------------------------------------------------------
| command          | args                                                           | description                       | alias            |
============================================================================================================================================
| module:create    | -                                                              | 引导创建Phalcon+模块              | create-module    |
--------------------------------------------------------------------------------------------------------------------------------------------
| module:list      | -                                                              | Phalcon+模块列表                  | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| module:install   | arg1: $repoUrl[, arg2: $moduleName]                            | 安装远程GIT上的Phalcon+模块       |                  |
--------------------------------------------------------------------------------------------------------------------------------------------
| module:clean-all | -                                                              | 清除所有模块的垃圾信息            | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| module:help      | -                                                              | Phalcon+模块工具集帮助手册        | module           |
--------------------------------------------------------------------------------------------------------------------------------------------
| server:start     | arg1: $moduleName                                              | 使用PHP内置服务器运行Phalcon+模块 | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| server:stop      | arg1: $moduleName                                              | 关闭Phalcon+模块服务器            | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| server:restart   | arg1: $moduleName                                              | 重启Phalcon+模块服务器            | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| server:list      | -                                                              | Phalcon+模块服务器列表            | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| server:help      | -                                                              | Phalcon+模块服务器工具集帮助手册  | server           |
--------------------------------------------------------------------------------------------------------------------------------------------
| model:create     | -                                                              | 引导创建Phalcon+ORM模型           | create-model     |
--------------------------------------------------------------------------------------------------------------------------------------------
| model:list       | arg1: $moduleName                                              | 查看指定模块的Phalcon+模型列表    | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| model:find       | arg1: $moduleName, arg2: $modelName[, arg3: $condition]        | 查询Phalcon+模型的数据列表        | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| model:help       | -                                                              | 查看Phalcon+模型工具集帮助文档    | model            |
--------------------------------------------------------------------------------------------------------------------------------------------
| exception:create | -                                                              | 引导创建Phalcon+异常类            | create-exception |
--------------------------------------------------------------------------------------------------------------------------------------------
| rpc:call         | arg1: $moduleName, arg2: $service="A::main"[, arg3: $jsonArgs] | Phalcon+本地RPC调用               | -                |
--------------------------------------------------------------------------------------------------------------------------------------------
| help             | -                                                              | 查看Phalcon+命令行工具帮助文档    | -                |
--------------------------------------------------------------------------------------------------------------------------------------------