dereuromark/cakephp-ide-helper
Composer 安装命令:
composer require --dev dereuromark/cakephp-ide-helper
包简介
CakePHP IdeHelper Plugin to improve auto-completion
README 文档
README
IdeHelper plugin for CakePHP applications.
Boost your productivity. Avoid mistakes.
This branch is for use with CakePHP 5.1+. For details see version map.
Features
The main idea is to improve IDE compatibility and use annotations to make the IDE understand the "magic" of CakePHP, so you can click through the class methods and object chains as well as spot obvious issues and mistakes easier. The IDE will usually mark problematic code yellow (missing, wrong method etc).
This also improves compatibility with tools like PHPStan. Those can then follow the code easier and provide more valuable help.
- Add annotations to existing code (e.g. when upgrading an application) just like baking would to new code.
- Can run multiple times without adding the annotations again.
- It can also replace or remove outdated annotations.
- Works with your application as well as any loaded plugin.
- CI check support, hook it up just like the coding standards check.
- Set up as watcher and have live in-real-time annotations added/updated.
Supports annotations for:
- Models (Tables and Entities)
- Controllers (including prefixes like
Admin) and Components - View (AppView) and Helpers
- Templates (
.phpPHP template files including elements) - Commands and Tasks
- ... and more
Supports code completion help for:
- Behaviors (property access on the BehaviorRegistry)
Supports IDE autocomplete/typehinting of (magic)strings as well as return types/values for:
- Plugins, Components, Behaviors, Helpers, Mailers
- Associations, Validation
- I18n Translation, Cache
- Elements and layouts
- Tables and their fields
- Route paths, Request/ENV, Connection
- ... and more (using PhpStorm meta file)
Supports better IDE usage with Illuminator tasks to enhance existing code:
- EntityFieldTask adds all entity fields as class constants for easier usage in IDEs
IDE support
This plugin is supposed to work with ANY IDE that supports annotations and code completion. IDEs tested so far for 100% compatibility:
- PhpStorm (incl. meta file generator)
- IntelliJ
- Atom
- VS Code
- ... [Report or PR your IDE of choice here to confirm its full compatibility]
See Wiki for details and tips/settings.
Plugin with Annotator tasks
- CakephpFixtureFactories for Factory class usage through
@extends.
Plugins with meta file generator tasks
The following plugins use this plugin to improve IDE compatibility around factory and magic string usage:
- Migrations for migration file writing (included in IdeHelper directly).
- Queue for
QueuedJobsTable::createJob()usage. - Burzum/CakeServiceLayer for
loadService()usage. - ... (add yours here)
Plugins with Illuminator tasks
- StateMachine for syncing states from XML into PHP.
- ... (add yours here)
More
More collections of useful tasks can be found in the IdeHelperExtra plugin.
Install, Setup, Usage
See the Documentation for details.
Powered by
They are sponsoring my IDE for my FOSS work on this repository and beyond.
dereuromark/cakephp-ide-helper 适用场景与选型建议
dereuromark/cakephp-ide-helper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.32M 次下载、GitHub Stars 达 188, 最近一次更新时间为 2017 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「annotations」 「phpdoc」 「cli」 「autocomplete」 「cakephp」 「dev」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dereuromark/cakephp-ide-helper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dereuromark/cakephp-ide-helper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dereuromark/cakephp-ide-helper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of helpers for PHPUnit to ease testing Tarantool libraries.
A simple tool for checking that your PHP classes and methods use PHPDocs (PHP DocBlocks Checker fork).
Laravel package that generates RESTful API documentation in Markdown based on PHPDoc.
Validates PHPDoc @param and @return tags against method signatures
The last validation library you will ever need!
A PHPDoc docblock interpreter that is simple, easy to use, and provides Attribute alternatives.
统计信息
- 总下载量: 2.32M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 190
- 点击次数: 36
- 依赖项目数: 30
- 推荐数: 46
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-18
