PHP ReflectionExtension's Information Rewind to PHP Code As Stub.
Code Completion under IDE.
$ php-extension-stub-generator.phar dump-files {extension name} {dir}
$ php-extension-stub-generator.phar dump-files ast tmp
$ php -d extension=/home/you/git/nikic_php-ast/modules/ast.so php-extension-stub-generator.phar dump-files ast tmp
to build phar, please install box.
$ composer.phar global require kherge/box --prefer-source
and run,
$ php -d phar.readonly=0 ~/.composer/vendor/bin/box build