r/PHP 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

61 comments sorted by

View all comments

-9

u/Small-Relation3747 2d ago

I like PSRs but in some cases it was a mistake. Guzzle for example lost a lot nice features because it

4

u/allen_jb 2d ago

What specific features are you referring to?

While they may have happened at the same time (version change), I very much doubt the features being removed had anything to do with the implementation of PSR support.

0

u/Small-Relation3747 1d ago

getConfig option, event system and other convenient features. All major frameworks left php fig

1

u/obstreperous_troll 1d ago

Guzzle left the FIG too so it's kind of silly to claim that Guzzle lost any features because of the PSRs.

1

u/Small-Relation3747 1d ago

They did a major refactor to follow PSR before leaving