3 ms·
> PSR-1 and PSR-2 are controversial > Much of both standards are an amalgam of individual > practices produced via an internal survey of PHP-FIG > m
by h2s 14y ago
> PSR-1 and PSR-2 are controversial
> Much of both standards are an amalgam of individual
> practices produced via an internal survey of PHP-FIG
> member projects.
Those member projects include codebases like Zend Framework, Symfony, Composer and Doctrine. Those standards are are a very accurate representation of the way the best, most popular open source PHP code is being written.
The only controversy I'm aware of is those petty pull requests opened by people who didn't like that they chose spaces over tabs, which eventually drove one of the founders of the group to quit out of frustration.
- itafroma 14y ago> Those standards are are a very accurate representation of the way the best, most popular open source PHP code is being written. PHP-FIG members have repeatedly cautioned[1][2][3][4] that the PSRs (notably PSR-2) are not a set of best practices, but merely a survey of commonalities of PHP-FIG member projects. Even then, several member projects do not, and have stated they will not, implement PSR-1 and/or PSR-2. Treating them as the best or most accurate representation of how PHP is being developed at large is exactly the wrong thing to take away from the PSR process. [1]: http://www.php-fig.org/faq/ http://www.php-fig.org/faq/ [2]: http://paul-m-jones.com/archives/2420 http://paul-m-jones.com/archives/2420 [3]: https://groups.google.com/d/msg/php-fig/TRpoq0kdrZk/OkyD-J4uz8sJ https://groups.google.com/d/msg/php-fig/TRpoq0kdrZk/OkyD-J4u... [4]: Matthew Weier O'Phinney's comment on http://brian.moonspot.net/php-coding-standards http://brian.moonspot.net/php-coding-standards