nazonohito51/cakephp2-ide-helper
最新稳定版本:0.2.5
Composer 安装命令:
composer require nazonohito51/cakephp2-ide-helper
包简介
Improve auto-completion for cakephp2
README 文档
README
Installation
composer global require "nazonohito51/cakephp2-ide-helper"
Recommend adding .gitignore_global or .gitignore.
.phpstorm.meta.php
_ide_helper.php
Basic Usage
generate:meta
path/to/your/vendor/bin/cakephp2-ide-helper generate:meta --app-dir=./app
Generate .phpstorm.meta.php. see sample.
generate:helper
path/to/your/vendor/bin/cakephp2-ide-helper generate:helper --app-dir=./app
Generate _ide_helper.php. see sample.
generate:model
path/to/your/vendor/bin/cakephp2-ide-helper generate:controller --app-dir=./app --git-root=./
Update phpdoc of models, for code complement of behavior methods.
If there is duplicate models, this command will be failed.
When this case, you need --ignore options.
generate:controller
path/to/your/vendor/bin/cakephp2-ide-helper generate:controller --app-dir=./app --git-root=./
Update phpdoc of controller.
generate:shell
path/to/your/vendor/bin/cakephp2-ide-helper generate:shell --app-dir=./app --git-root=./
Update phpdoc of shell.
path/to/your/vendor/bin/cakephp2-ide-helper generate:model --app-dir=./app --git-root=./ --ignore=Model/SomeDuplicateClass.php
TODO
- read actsAs from Model
- read public methods from Behavior
- update phpdoc on Model with diff(use str_replace)
- analyze return type of Behavior
- deprecate Behavior method by model extends graph
- consider git manage files
- skip update model when phpdoc is empty
- ClassRegistry argument helper
- Fabricate argument helper
- fixtures argument helper(phpstorm meta)
- model property in controller
- getDataSource
- Model::find('first', 'count' ...)
- Model::find('', ['condition'...])
- withRead argument
- ignore unload behavior
- disable behavior extend
- Controller/Shell uses property
- Consider Behavior extends
- ignore abstract behavior, or assign abstract keyword
- consider about duplicate behaviors
统计信息
- 总下载量: 253.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-05