3 ms·
It's funny that you can choose from four standards.
by stiGGG 10y ago
It's funny that you can choose from four standards.
- diggan 10y agoWell, to be fair, the standards (PSR 0/1/2) are different and fixes different things, they are not about fixing the same issues, in different ways. So at least that's good. However, what is funny, is that Symfony chose their own standard instead of going with the rest of the ecosystem. But I come to expect that from Symfony
- tomschlick 10y agoI believe Symfony's standard existed before the PHP-FIG which made the PSRs.
- 0x4a42 10y agoThis is not true. Symfony is a member of the PHP-FIG group[1], writer of the PSR standards. The Symfony framework follows PSRs[2] but also has its own additional set of rules. [1] http://symfony.com/doc/current/contributing/code/standards.html http://symfony.com/doc/current/contributing/code/standards.h... [2] http://symfony.com/doc/current/contributing/code/standards.html http://symfony.com/doc/current/contributing/code/standards.h...
- Navarr 10y agoPSR-0, 1, and 2 build off of the previous one. PSR-0 is an autoloading standard PSR-1 is a basic coding standard PSR-2 is a coding style guide I'm very unsure what running code through PSR-0 would do for it, since it's not really about code-style