How can I generate skeleton classes from PHP extension for code completion in IDE?

Several years ago, I found a simple script somewhere that was able to generate skeletons for classes, functions and constants from some extension. I think he used Reflection. I don't remember, but I think this script was on the website or in the PDT sources somewhere.

The generator should be able to generate skeletons from any classes defined in PHP (both from code written in PHP and from C / C ++ code from PHP extensions). PHP Reflection is capable of handling these cases.

The generated code looks like this:

class foo {
    public function bar($arg1, $arg2) {}


The body of all methods is empty, but useful for code completion in the IDE.

Can you help me find a tool with such features?


source to share

All Articles