Giter Site home page Giter Site logo

fig-rectified-standards's Introduction

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

  • PSR-2-R - "PSR-2 with tabs and consistent brace style"
  • PSR-2-R Additions - optional coding standard recommendations
  • Reasoning behind it and a Spaces-vs-Tabs and Brace-Styles evaluation

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

Num Title Code
0 Autoloading Standard PSR-0
1 Basic Coding Standard PSR-1
2 Coding Style Guide PSR-2-R
3 Logger Interface PSR-3
4 Autoloading Standard PSR-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

  • Undeceive more lost souls. If everyone used PSR-2-R, FIG would have to revise their standard.
  • Help to make the FIG people understand what errors they made (and as a result damage they caused by deliberately forming an inconsistent standard) and how they can rectify them.

Proposing a Standard Recommendation

See the original FIG repo.

fig-rectified-standards's People

Contributors

burzum avatar dereuromark avatar ionas avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.