PHP Annotations

Compatible with: IntelliJ IDEA PhpStorm
30.04.2017
600 095
PHP Annotation
GitHub | Issues

Installation
  • Just install and be happy
  • Optional: Install Symfony Plugin
  • Optional: Install PHP Toolbox
  • Optional: Configure plugin "Languages & Framework > PHP > Annotations"
Features
  • Youtube: PhpStorm: PHP Annotations Plugin
  • Attach PhpClass to their DocTag to support "Code > Optimize Imports"
  • Auto alias detection on use statement
  • Filter annotation classes on targets like method, class, property, ...
  • Goto for doc tags and property names
  • Detect annotation property values on phpclass property name including types
  • Index classes with @Annotation inside doc block
  • Plugin extension point
  • Doctrine related providers
  • Class import annotator
  • Class constants in DocTags
  • Doctrine ORM intention and quickfixes for: repository and properties
  • Auto alias import for annotation class
Related Plugins

Download plugin

Recent change notes

5.x: PhpStorm 2017.1+
4.x: PhpStorm 2016.1.2+
3.x: PhpStorm 2016.1+
2.x: PhpStorm9, 10
1.x: PhpStorm8
5.0
  • PhpStorm 2017.1 build
  • Add FOSRest alias #87 @Koc
4.3.2
  • Replace deprecated api usages
4.3.1
  • Add virtual annotation classes properties / fields #80
4.3
  • Index issue on YAML File; drop usage of DefaultFileTypeSpecificInputFilter #72
  • Add autosuggest and ctrl+click for Doctrine CustomIdGenerator #48
  • Add extension point to register global namespace prefixes #81
4.2
  • Add alias for VichUploadableBundle #69 @Koc
  • Add references for Doctrine @ORM\Embedded.class #68
  • Add autocomplete for array values of properties as extension point #62
  • Add Symfony internal route array completion provider #62
  • Add PHP-Toolbox provider for new array annotations as "annotation_array" #62
4.1.2
  • PhpStorm 2016.3: Switch from PhpResolveResult#create to PsiElementResolveResult#createResults #66
4.1.1
  • Fix class cast issue for reference contributor #64
4.1
  • Add class constant support for import optimization and provide references. #22, #26, #38, #40
  • Implement workaround for class constant usage in doc array WI-32801
4.0.1
  • Fails to recognize import useful for PHPDoc Annotation(s), PHPStorm 2016.2 #59, #63 @artspb
4.0
  • Support nested annotations #8, #55
  • Add button in settings form to force reindex of annotation classes #55
  • Drop project references in settings form; prevent memory leaks
  • Java8 migration
  • Use newest api level and migrate internal code usage

open full changelog