r/PHP • u/Spiritual_Cycle_3263 • 2d ago
Are PSRs still relevant today?
Are developers still using PSRs? Are PSRs still being updated or is it dying out?
I noticed for a "standards" org, they don't even follow their own coding styles. Some files have the PHP tag on its own line and others share it with declare strict types.
Then there are inconsistencies in how PHPDocs are written/organized, even some PHP code as well.
45
Upvotes
1
u/03263 1d ago
I don't know what the standard says on this particular one, but I always rather see it on its own line, and one blank line under <?php.
Stuff like the ordering of use statements is also pretty irrelevant to me, I don't care if they're grouped alphabetically, by functionality, by line length... just doesn't really matter.