Is there a Netbeans/PHPStorm plugin for writing/refactoring to PSR-1/2-compilant code (like phphint.org)

coding-style, netbeans, php, phpstorm

Solution

For PhpStorm code formatting can be set to PSR1/PSR2 simply: `File -> Settings -> Code Style -> PHP -> Set From... -> Predefined Style -> PSR1/PSR2`

Details are on the JetBrain's web site too.

And use `Ctrl + Alt + L` to reformat code.

Problem

As the title says: Is there a Netbeans/PHPStorm plugin for writing/refactoring to PSR-compilant code ? phphint.org does exactly that, but offers only an online-copy&paste-tool, not an IDE-integrated real time solution. What exactly i'm searching for is: - "real time" PSR-code checking while typing - reformating/refactoring projects to fit PSR (1/2) coding guidelines (as far as possible) In case you are wondering what i'm talking about: PSR-1 Basic Coding Standard and PSR-2 Coding Style Guide are Coding Guidelines published by the big PHP guys.

Original source