cakephp-ide-helper

IDE Helper plugin for CakePHP

MIT License

Downloads
1.5M
Stars
183
Committers
25
cakephp-ide-helper - 0.10.0

Published by dereuromark about 7 years ago

Improvements

Added a CodeCompletion shell on top of the existing ones to allow a more generic IDE support from now on.
You can generate a basic file that any IDE should understand. With this you can provide correct typehinting now for a lot of magic properties and methods that so far haven't worked.
See the documentation on details - and on how to write your own custom (project/plugin) tasks on top!

Give it a try - and let me know in the Wiki or via PR (pull request) if your IDE works out or what might still be missing.

MCGA - Make CakePHP Great Again! :)

cakephp-ide-helper - 0.9.8

Published by dereuromark about 7 years ago

Bugfixes

Generator:

  • Auto-create the new ROOT folder if necessary for the meta file.

Improvements

Generator:

  • With preemptive option enabled it will now also fetch and add all custom finders to auto-completion.
    But it seems to only be possible to add them all globally for the time being. Thus not all of them will work, you need to still load the behavior for it first in some cases.

Annotator:

  • AppView annotations are now always added as they should enable the developer to use the View class access right away.
cakephp-ide-helper - 0.9.7

Published by dereuromark about 7 years ago

Improvements

Added even more IDE auto-completion for various magic strings:

  • Table::find(): 'all', 'list', 'threaded' etc
  • Table associations belongsTo(), hasOne(), hasMany(), belongsToMany(): all current tables

Further:

  • For meta file generation it now uses a ROOT folder. Please make sure to remove the old ROOT file.
    This allows for custom and manual meta files on top.
  • test_files and test_app test dirs are now removed for tagged releases, this avoids IDE warnings about multiple occurrences.
cakephp-ide-helper - 0.9.6

Published by dereuromark about 7 years ago

Improvements

Added IDE auto-completion for

  • loadModel() for Controllers
  • loadHelper() for Views
  • loadComponent() for Controllers
  • addBehavior() for Models

Also now allows to customize or skip certain native generator tasks.

cakephp-ide-helper - 0.9.5

Published by dereuromark about 7 years ago

Bugfixes

Fixed output of annotator. Count of added lines is now shown correctly.

cakephp-ide-helper - 0.9.4

Published by dereuromark about 7 years ago

Improvements

Also annotate the dynamic model factory calls:

  • ModelAwareTrait: $this->loadModel('Users')
  • LocatorAwareTrait: $this->getTableLocator()->get('Users')
cakephp-ide-helper - 0.9.3

Published by dereuromark about 7 years ago

Bugfixes

Use own error code (2) for CI and dry-run.

cakephp-ide-helper - 0.9.2

Published by dereuromark about 7 years ago

Enhancements

Static method call annotations

Added meta file generation for PHPStorm that allows static factory method calls to be typehinted.
For now mainly TableRegistry::get(...) calls are supported out of the box.

You can also easily add your own custom tasks to be used for the generation of this file.

cakephp-ide-helper - 0.9.1

Published by dereuromark about 7 years ago

Enhancements

Allow App helpers to be added by default

cakephp-ide-helper - 0.9.0

Published by dereuromark about 7 years ago

Improvements

Allow removing outdated annotations

Careful: This is still an alpha feature and experimental. Please backup everything before using -r flag and/or use -d (dry run) preview.

Allow custom entity column/field types

Often times you have a custom mapping of e.g. JSON, array or mediumtext/longtext columns in your DB.
The Bake plugin does not handle them all currently.
With the custom map config typeMap you can specify anything (and also overwrite the current IdeHelper defaults). If you want to unset, just set the value to false for a specific key.

More enhancements

  • A preemptive config option has been added to be more pre-annotative especially in View templates.
  • The output now is more verbose and tells you how many annotations have been added, updated, removed or skipped (due to comments those are considered custom annotations not to be touched).
  • The mixin annotation is now fully supported.
  • Method annotations can now have a description (also to prevent them from being modified or removed).
  • Annotations can be marked as "in use" internally to avoid them being removed with -r flag.
cakephp-ide-helper - 0.8.5

Published by dereuromark about 7 years ago

Bugfixes

Normalize the diff output on CLI.

cakephp-ide-helper - 0.8.4

Published by dereuromark about 7 years ago

Enhancements

Added support for pagination annotations in Controllers.
This follows recent changes in Bake plugin that also does this.

cakephp-ide-helper - 0.8.3

Published by dereuromark about 7 years ago

Bugfixes

Allow for global phpcs installation to work well with this plugin.

cakephp-ide-helper - 0.8.2

Published by dereuromark about 7 years ago

Adjustments

Allow for new diff major.

cakephp-ide-helper - 0.8.1

Published by dereuromark over 7 years ago

Improvements

  • Allow $ to be optional for property annotations.
  • Allow configurable prefixes for controller annotations via IdeHelper.prefixes.
cakephp-ide-helper - 0.8.0

Published by dereuromark over 7 years ago

Improvements

Code modification relies on the PHP token parsing/updating of the PHP_CodeSniffer tool.

  • PHP_CodeSniffer v2.8 and v3.0 are now both supported, depending on what coding standard in what version you have you can now still use this IdeHelper plugin.

Bugfixes

  • Fix annotation generator for entity annotations around property tags to be properly merged.
cakephp-ide-helper - 0.7.3

Published by dereuromark over 7 years ago

Bugfixes

  • Fix annotations for plugin controllers regarding components.

Adjustments

cakephp-ide-helper - 0.7.2

Published by dereuromark over 7 years ago

Bugfixes

  • Fix plugin controller annotations

Improvements

  • Support expressions like $this->Form->create($entity, ...) for template annotations
cakephp-ide-helper - 0.7.1

Published by dereuromark over 7 years ago

Bugfixes

Fix controllers and their component annotations

cakephp-ide-helper - 0.7

Published by dereuromark over 7 years ago

Improvements

  • Fix ModelAnnotator to replace property annotations.
  • Allow plugins to be annotated correctly.
  • Added PHPStan check
Package Rankings
Top 1.19% on Packagist.org
Badges
Extracted from project README
CI Coverage Status PHPStan Minimum PHP Version
Related Projects