Vim has balloonexpr, which is leveraged in e.g. Ruby to show the API documentation for current hovered word.
How could I get something similar for PHP? What CLI/programmable options are there to access the PHP API documentation? Obviously an offline version is preferred over the online php.net HTML version :). Could e.g. doxygen be used for this?
Are there projects already that allow tooltips with PHP API documentation?