IdeHelper plugin for CakePHP applications.
Boost your productivity. Avoid mistakes.
This branch is for use with CakePHP 5.0+. For details see version map.
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.
Supports annotations for:
Admin
) and Components.php
PHP template files including elements)Supports code completion help for:
Supports IDE autocomplete/typehinting of (magic)strings as well as return types/values for:
Supports better IDE usage with Illuminator tasks to enhance existing code:
This plugin is supposed to work with ANY IDE that supports annotations and code completion. IDEs tested so far for 100% compatibility:
See Wiki for details and tips/settings.
The following plugins use this plugin to improve IDE compatibility around factory and magic string usage:
QueuedJobsTable::createJob()
usage.loadService()
usage.More collections of useful tasks can be found in the IdeHelperExtra plugin.
See the Docs for details.