I use several installed PECL extensions in my PHP environment. I am developing with Eclipse, and it would be useful to have Eclipse support for support / auto completion for these extensions. This procedure worked well enough to extend Solr :
- I also downloaded the latest solr-php PECL sources and put them in a separate folder.
- I added this specific folder as an “external folder” to one of my custom Libs (Prefrences → PHP → PHP Libraries).
- I added a custom lib to my php include project path (Properties → PHP Include Path → Libraries → Add Library)
- I immediately got new classes / methods available in the editor autocompletion.
The problem is that this does not work for all extensions. E. g. for expansion by adding MongoDB support for PHP. Why is this?
Comparing the contents of the folders, I notice that there is no php file in the Mongo extension, such as docs / documentation.php (which is contained in the Solr extension). While all relevant * .h and * .c files are available.
Do I have to create certain files myself?
Thanks in advance for the tips, greetings!
source
share