Home

Awesome

CakePHP IdeHelper Plugin

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.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.

Supports annotations for:

Screenshot

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:

IDE support

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.

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

More

More collections of useful tasks can be found in the IdeHelperExtra plugin.

Install, Setup, Usage

See the Docs for details.