Home

Awesome

PHP Framework Interoperability Group - RECTIFIED

or "FIG-R"

The idea behind the group is to address errors made in the actual FIG PSRs and to rectify those before it's too late. If other folks want to adopt what we are doing they are welcome to do so, but that is not the aim. If other folks feel forced to adopt what we're doing they are welcome to do so, and they most certainly will. Right?

Why FIG-R and PSR-2-R?

Because it seems to be necessary. Coding standards should not evolve out of political decisions, but reasonable arguments.

First of all FIG itself did make mistakes in their drafts resulting in a wrong standard now. They knew it and always talked it down as "internal group decisions" not affecting the rest of the PHP world. But they very well knew it would at some point, as more and more adopt to it due to a lack of guidance making it the "de-facto standard" these days.

People are not taking a library, framework or code seriously these days, just because it is not complying to FIG PSR(-2), by using tabs for example (as it might always have and as it should have).

This addresses this issue in the PHP community.

Content

Badge

Coding Standards

You can copy this snippet:

[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)

PHP Standard Recommendations

NumTitleCode
0Autoloading StandardPSR-0
1Basic Coding StandardPSR-1
2Coding Style GuidePSR-2-R
3Logger InterfacePSR-3
4Autoloading StandardPSR-4

Code Sniffer and Fixer

Check out the psr2r-sniffer repo, which contains a sniffer that can not only report all CS issues but also auto-fix most of them.

TODOs

Proposing a Standard Recommendation

See the original FIG repo.