All Projects → php-fig-rectified → Fig Rectified Standards

php-fig-rectified / Fig Rectified Standards

The FIG PSR-2 that actually makes sense (not political but reasonable decisions).

Projects that are alternatives of or similar to Fig Rectified Standards

Open Ui
Maintain an open standard for UI and promote its adherence and adoption.
Stars: ✭ 1,076 (+715.15%)
Mutual labels:  standards
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (-34.09%)
Mutual labels:  standards
Php Cs Fixer
A tool to automatically fix PHP Coding Standards issues
Stars: ✭ 10,709 (+8012.88%)
Mutual labels:  code-style
Standards.rest
A collection of standards, specifications, etc. for HTTP API development.
Stars: ✭ 58 (-56.06%)
Mutual labels:  standards
Hippo
PHP standards checker.
Stars: ✭ 82 (-37.88%)
Mutual labels:  code-style
I D
My Internet-Drafts
Stars: ✭ 94 (-28.79%)
Mutual labels:  standards
Httpolice
Validator for HTTP
Stars: ✭ 948 (+618.18%)
Mutual labels:  standards
Editorconfig Netbeans
A NetBeans IDE plugin supporting the EditorConfig standard. ⛺
Stars: ✭ 123 (-6.82%)
Mutual labels:  code-style
Qcengine
Quantum chemistry program executor and IO standardizer (QCSchema).
Stars: ✭ 83 (-37.12%)
Mutual labels:  standards
Meta
The Standard to create Open Standards
Stars: ✭ 103 (-21.97%)
Mutual labels:  standards
Php Cs Fixer Custom Fixers
A set of custom fixers for PHP CS Fixer
Stars: ✭ 75 (-43.18%)
Mutual labels:  code-style
Elm Format
elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
Stars: ✭ 1,240 (+839.39%)
Mutual labels:  code-style
Paper Code
对一些好的技术文章结合自己的实践经验进行翻译、举例说明等或自己的经验分享。主要包括架构设计、模式设计、模型设计、重构等。
Stars: ✭ 94 (-28.79%)
Mutual labels:  standards
Phpstorm Ide Config
My PhpStorm configuration for writing modern PHP code
Stars: ✭ 55 (-58.33%)
Mutual labels:  code-style
Wg Materials
Agenda, Minutes, Presentations
Stars: ✭ 120 (-9.09%)
Mutual labels:  standards
Swift Style Guide
Swift language style guide & coding conventions followed by Xmartlabs.
Stars: ✭ 36 (-72.73%)
Mutual labels:  code-style
Base Drafts
Internet-Drafts that make up the base QUIC specification
Stars: ✭ 1,270 (+862.12%)
Mutual labels:  standards
Directories Jvm
a tiny library that provides config/cache/data paths, following the respective conventions on Linux, macOS, BSD and Windows
Stars: ✭ 128 (-3.03%)
Mutual labels:  standards
Empiricalstandards
Empirical standards for conducting and evaluating research in software engineering
Stars: ✭ 122 (-7.58%)
Mutual labels:  standards
Data Protection Mapping Project
Open Source Data Protection/Privacy Regulatory Mapping Project
Stars: ✭ 96 (-27.27%)
Mutual labels:  standards

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].