CakePHP 3 adopts PSR-2

Recently read this article from James Watts:

By adopting PSR-2 we can remove or reduce the code we maintain related to enforcing coding standards.

As there are common tools, used by the rest of the community, to validate and revise CS issues, without requiring exceptions.

james watts

Looks like it’s the time to re-write our internal modules with PSR-2 standards in mind. If we want to share them with open-source community, of course

2 Comments

  1. Are you using CakePHP 3 already? If not, don’t worry much about it. Because you’ll probably need to rewrite your modules for CakePHP 3 anyway. 🙂 (hint – models)

    • anvyst

      2014-12-30 at 15:43

      I’ve tried migrating some of the code we have from 2.x to 3.x. Not really clear if rewriting it in 3.x is more time-consuming than migrating it from 2.x.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2018 Andy's Cave

Theme by Anders NorénUp ↑