We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

phalcon auto-completion in IDE

Hi, and many thanks for bringing us such a c-based framework for php.

Do you plan to generate any dockblock php file for doc / autocompletion purposes (useful for IDEs, Netbeans, Eclipse, ...) ? It would be great for decreasing learning-curve and type-coding time :-)

Regards, Buu-Lâm



17.8k
Accepted
answer

git clone https://github.com/phalcon/phalcon-devtools.git

add phalcon-devtools/ide/0.9.0 to eclipse path

(y) thanks for the tip... very complete stubs !

Been looking for this for the longest time! thanks!

for netbean users just add the phalcon-devtools/ide/0.9.0 to your project's include path or to the global path!



1.5k

Could you be a little more specific on how to set this up in eclipse? Googling around didn't get me further, aside of noticing auto complete options are a mess in eclipse.

What i did, in eclipse: added path of devtools/ide/1.2.3 here Preferences->General->Linked Resources

as well as here: Preferences->PHP->PHP Libraries

Notice, i am working on php files remotely, so i'd like to set this up in eclipse globally, not in any projects options. Any suggestions?



17.8k

right click the project, choose include path, configure include path -> library->add external source folder

edited Aug '14

It's not working for me. I've done exactly what you described, but Eclipse does not recognise the language. have other solution?



161

I have just added one dir i.e. phalcon-devtools/ide/1.3.2/Phalcon and it worked great. Otherwise there are many same methods and namespaces and classess when I press control+space.



165
edited Aug '14

I use Codelobster PHP Edition - https://www.codelobster.com

Latest version has very good autocomplete for Phalcon framework.

I realize this topic is a little older but I figured I should come back and comment.

I made a compeltions plugin for Sublime Text called phalconphp-completions. You can also find it on package control. Just do a search for phalcon and it should come up.

edited Jul '15

Hey there, my preferred IDE is PhpStorm, I've just published a hint generator: https://github.com/lajosbencz/phalcon-hint-generator Although I imagine it should work for any IDE... Tested it with Phalcon 2.0.4.4 Input is welcome!:]



81.1k

And Brackets in linux



499

And Brackets in linux New for me... i give it a try. thanks

Great! Makes everything easier, as I am going to use it.

I realize this topic is a little older but I figured I should come back and comment.

I made a compeltions plugin for Sublime Text called cheapessaywriter. You can also find it on package control. Just do a search for phalcon and it should come up.