# PSR-12: Extended Coding Style

> A coding style guide for PHP code (formatting, declarations, control structures and the rest), extending PSR-1 and replacing PSR-2, so code from many authors reads the same way. PER Coding Style continues it.

Source: https://talira.ai/standards/psr-12
Every standard: https://talira.ai/standards.md

- Maintained by: PHP Framework Interop Group (PHP-FIG)[^1]
- Status: Released[^2]
- Homepage: https://www.php-fig.org/psr/psr-12/
- Specification: https://www.php-fig.org/psr/psr-12/
- Related: [PER-CS](https://talira.ai/standards/per-coding-style.md)

## Supported by

Talira lists 1 product that supports PSR-12.

- [laminas-coding-standard](https://talira.ai/catalog/laminas-coding-standard-wf2s5eqd.md)[^3]: The Laminas Project's PHP_CodeSniffer coding standard ruleset, built on PSR-12

Know a product that supports PSR-12? Report it on https://talira.ai/standards/psr-12 or with the MCP server's `report_problem` tool (kind `wrong_fact`, the listing, and fact `standards[psr-12]`).

## Sources

[^1]: https://www.php-fig.org/psr/psr-12/ (checked 26 Nov 2026)
[^2]: https://www.php-fig.org/psr/ (checked 26 Nov 2026)
[^3]: https://github.com/laminas/laminas-coding-standard/blob/3.2.x/README.md (checked 28 Nov 2026)
