14
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PSR-12 への対応状況

Last updated at Posted at 2019-10-03

PHP-FIG というPHPフレームワークなどの開発者のグループが公開している PHP Standards Recommendations (PSR) の
PSR-12: Extended Coding Style が 2019/08/10(土) に承認されました。
これにより2012年からあった PSR-2: Coding Style Guide は非推奨となっています。

PSR はPHP公式で策定されているものではないので、PSR-12 や PSR-2 は必ず守らなければならないコーディング規約というものではありませんが、有名どころのフレームワーク・パッケージで採用されており自身のプロジェクトで採用するメリットはあると思います。
参考: PSRの誤解 - Qiita

PSR-12 を採用するためのツールなどの対応状況をまとめます。

IDE

名前 対応バージョン リンク
PhpStorm 2019.3

Code Quality

名前 対応バージョン リンク
PHP Coding Standards Fixer 2.18.0 PSR-12 Support · Issue #4502 · FriendsOfPHP/PHP-CS-Fixer
PHP_CodeSniffer 3.5.0
14
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?