k2snza
Last Updated: September 20, 2016
·
5.458K
· m2mdas
66751df664d967adb7f12e2314e6ed46

phpcomplete-extended: a fast, extensible vim autocomplete plugin for PHP projects

phpcomplete-extended is a fast, extensible, context aware autocomplete plugin
for PHP composer projects. Initially it reads autoload classmap of a composer
project, parses doc-comments of each class and creates index from them. After
that it auto updates index as you type thanks to
vimproc.vim plugin. Besides
autocomplete this plugin have several code inspection features,

  • Includes full core PHP documentation
  • See documentation of current word, be it class name, method or property. It is context aware.
  • Go to definition of a symbol. Also context aware.
  • Automatically add use statement of current completed word. Also added plugin command of this action.
  • The plugin is extensible so that framework specific autocomplete suggestion(for example facades in laravel, DIC services in Symfony2 frameworks) is possible. Checkout phpcomplete-extended-symfony and phpcomplete-extended-laravel for the implementation.

  • If unite.vim plugin installed following sources are available,

    • phpcomplete/files : Lists PHP files of the project.
    • phpcomplete/vendors : Lists vendor directories
    • phpcomplete/extends : Lists classes that extends the class guessed from the current cursor word.
    • phpcomplete/implements : Lists classes that implements the class guessed from the current cursor word.

Checkout the following videos demonstrating features of the plugins

Head to the github repository for installation instruction and additional information about the plugin.

Say Thanks
Respond

3 Responses
Add your response

9342
C595e7c8 950a 4ad5 bbe4 231ba4c744cb

Wow, I can't believe this treasure trove got no attention! Thanks for the fantastic resources!

over 1 year ago ·
14545
5a999be4e1553fb640132d205152fa38

Woah, this is literally a treasure. This post definitely needs more attention.

Thanks for sharing this!

over 1 year ago ·
17151
Ddf41f6ad61bcf6d8b84bc837dfcbeed normal

thats great !

over 1 year ago ·
Filed Under