定制 dereuromark/cakephp-ide-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dereuromark/cakephp-ide-helper

Composer 安装命令:

composer require --dev dereuromark/cakephp-ide-helper

包简介

CakePHP IdeHelper Plugin to improve auto-completion

README 文档

README

CI Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads

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 (.php PHP template files including elements)
  • Commands and Tasks
  • ... and more

Screenshot

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

Plugins with meta file generator tasks

The following plugins use this plugin to improve IDE compatibility around factory and magic string usage:

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

PhpStorm logo.

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 dereuromark/cakephp-ide-helper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.32M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 190
  • 点击次数: 36
  • 依赖项目数: 30
  • 推荐数: 46

GitHub 信息

  • Stars: 188
  • Watchers: 11
  • Forks: 41
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-18