Autocompletion for own c extension


i have my own php c extension and would have autocompletion for the functions. How can i do this?

Best Regards

1 comment
Comment actions Permalink

Hi there,

You can do this by creating stub file for it and then place it anywhere in the project (or reference in any other supported way) -- it never will be executed by PHP -- it's for IDE only.

Stub file is basically a PHP file with class/functions/constants/variables/etc definitions (with proper PHPDoc comment blocks) but all function/method bodies are empty -- that's how all classes/functions/etc that are supported by PhpStorm ATM are  implemented (you can Ctrl+Click on any standard PHP function or class and see it yourself).

You can see an example of such files in:


Please sign in to leave a comment.