is there any way i can add autocompletion feature for swagger php annotation in phpstrom?
Just install "PHP Annotations" plugin. If your project includes swagger-php in usual way (via Composer), it should work without any configuration.
@alexeyshockov i just follow your instruction but no luck :(
I've just tried it, and it only works when you're using the full classname.
For example @Swagger\Annotations\Get(su shows the completion for _summary_ and _consumes_.
Also command+click on the annotation navigated to the Get annotation class.
Doctrine-annotations allows using shorter annotations by importing a namespace: use Swagger\Annotations as SWG;
_(swagger-php tricks the doctrine-annotation parser that all php-files have this line)_
Sadly this doesn't get picked up by the PHP Annotation plugin yet.
I'm closing this issue because this project doesn't affect phpstorm's feature set.
Most helpful comment
Just install "PHP Annotations" plugin. If your project includes swagger-php in usual way (via Composer), it should work without any configuration.