gitmyhub

fig-standards

★ 13k updated 3mo ago

Standards either proposed or approved by the Framework Interop Group

Official home of PHP Standard Recommendations (PSRs), shared coding and interface specifications created by major PHP framework representatives so that libraries and frameworks can work together without custom adapters.

setup: easycomplexity 1/5

php-fig/fig-standards is the official repository for PHP Standard Recommendations, commonly called PSRs. The PHP Framework Interoperability Group (PHP-FIG) is a collection of PHP project representatives who create and vote on shared specifications so that different frameworks and libraries can work together without friction.

PSRs cover practical interoperability concerns: how PHP source files should be formatted, how class autoloading should work, how HTTP request and response messages should be structured, and how common interfaces for logging, caching, and event dispatching should look. When a major framework adopts these standards, any library that also follows them can plug directly into that framework without needing custom adapters.

This repository is where proposed and approved standards are stored and tracked. A new PSR starts as a draft placed in a proposed folder, then goes through a structured review process involving discussion on the group'''s mailing list and votes from the member representatives. Anyone can read and comment, but formal votes are reserved for representatives of member projects. Any PHP project can apply for membership by sending a request to the mailing list; current members then vote on the application.

All discussion is expected to happen on the mailing list rather than through GitHub pull request comments or issues, which the README notes are frequently overlooked. GitHub serves primarily as a storage location for the specification documents.

The repository contains no runnable code, only the specification documents written in English. The full list of accepted PSRs and current voting members is available on the project'''s main website at php-fig.org.

Where it fits