dereuromark / cakephp-ide-helper
CakePHP IdeHelper Plugin to improve auto-completion
Fund package maintenance!
dereuromark
Installs: 1 566 055
Dependents: 26
Suggesters: 46
Security: 0
Stars: 186
Watchers: 15
Forks: 39
Open Issues: 10
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/bake: ^3.0.4
- cakephp/cakephp: ^5.0.7
- phpstan/phpdoc-parser: ^1.23.1
- sebastian/diff: ^5.0 || ^6.0
- squizlabs/php_codesniffer: ^3.8
Requires (Dev)
- cakephp/migrations: ^4.0.1
- cakephp/plugin-installer: ^2.0.1
- dereuromark/cakephp-shim: ^3.3.0
- fig-r/psr2r-sniffer: dev-master
- phpunit/phpunit: ^10.5.5 || ^11.1.3
- dev-master
- 2.6.1
- 2.6.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-RC2
- 2.0.0-RC
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.10
- 1.18.9
- 1.18.8
- 1.18.7
- 1.18.6
- 1.18.5
- 1.18.4
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.2
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.3
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.0
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-rc
- 1.0.0-beta
- 0.14.11
- 0.14.10
- 0.14.9
- 0.14.8
- 0.14.7
- 0.14.6
- 0.14.5
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.22
- 0.13.21
- 0.13.20
- 0.13.19
- 0.13.18
- 0.13.17
- 0.13.16
- 0.13.15
- 0.13.14
- 0.13.13
- 0.13.12
- 0.13.11
- 0.13.10
- 0.13.9
- 0.13.8
- 0.13.7
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.7
- 0.12.6
- 0.12.5
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.11
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
- dev-cake4
- dev-phpstan2
- dev-cake3
- dev-command-line
- dev-master-ast
This package is auto-updated.
Last update: 2024-11-26 09:00:26 UTC
README
IdeHelper plugin for CakePHP applications.
Boost your productivity. Avoid mistakes.
This branch is for use with CakePHP 5.0+. 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.
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, Shells 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.
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 Docs for details.