Show HN: PHPStorm Plugin for dynamic code completion
profoundinventions.comI always end up working on PHP code with dynamic methods or properties (you know, the kind using the magic methods __get or __call()) - so you don’t get any code completion for those. I love PHPStorm, and I find it frustrating when I don’t get code completion.
I wanted to get completion for that dynamic code too. So I wrote a plugin to do that and it’s called “PHP Houdini.” I’m also charging for it - it’s free for 30 days [1]. I don’t expect there’s a big market for it, and I’ve mostly written it for myself when I get thrown into new PHP code bases.
The code for configuring the autocompletion reads like English, but it’s ordinary PHP. I actually wrote what is effectively itself has autocompletion. You create a file called “.houdini.php” in the route of your projects, and then call various functions on the return value of a “houdini()” builder function.
Writing it was fun because I effectively wrote a small PHP subset interpreter to handle the configuration. I’m interested in any feedback. Thanks!