codeguy / php-the-right-way

An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative tutorials around the Web
https://www.phptherightway.com
Other
9.07k stars 3.24k forks source link

Add PER Coding Style #971

Closed petk closed 1 year ago

petk commented 1 year ago

There is a new coding standard by PHP-FIG called PER Coding Style which is evolving and is replacing the PSR-12 coding style.

Since these PSR-1 and PSR-12 are still not marked as deprecated, maybe for now only listing the PER would be good and later also remove the PSR-1 and PSR-12.

Xymph commented 1 year ago

Thanks. My (limited) understanding of the FIG process is that a PER will eventually be finalized into a PSR. Once that has happened we can revisit which PSRs to list.

petk commented 1 year ago

@Xymph, PERs will stay in this "PER" mode and won't be moved to PSR. These are like PSRs (voting and everything happen the same as with PSRs) but they also evolve through time. PSR is kind of locked with certain number. PER also have semantic versioning: https://twitter.com/phpfig/status/1535140189428977664

Xymph commented 1 year ago

Ok, thanks for the clarification.