PSR-12: Extended Coding Style
17 September 2025 (Updated 17 September 2025)
PSR-12 provides a more extensive coding standard that extends PSR-1.
Example standards include:
- All PHP files must use the Unix LF (linefeed) line ending only.
- The closing
?>
tag must be omitted from files containing only PHP. - Code must be indented using 4 spaces for each indent level. Tabs should not be used.
Tagged:
PHP