Coding Standards: Difference between revisions
From Freephile Wiki
Created page with "In the PHP community, as well as every other development community, there has been a long-standing tradition of establishing 'Coding Standards' that specify how developers sho..." |
link to NetBeans |
||
Line 1: | Line 1: | ||
In the PHP community, as well as every other development community, there has been a long-standing tradition of establishing 'Coding Standards' that specify how developers should format their code. So, the [http://www.php-fig.org/ PHP Framework Interop(ability) Group] came up with <abbr title="PHP Standard Recommendation">[http://www.php-fig.org/psr/psr-1/ PSR-1]</abbr> and <abbr title="PHP Standard Recommendation">[http://www.php-fig.org/psr/psr-2/ PSR-2]</abbr> that deal with the issue specifically. | In the PHP community, as well as every other development community, there has been a long-standing tradition of establishing 'Coding Standards' that specify how developers should format their code. So, the [http://www.php-fig.org/ PHP Framework Interop(ability) Group] came up with <abbr title="PHP Standard Recommendation">[http://www.php-fig.org/psr/psr-1/ PSR-1]</abbr> and <abbr title="PHP Standard Recommendation">[http://www.php-fig.org/psr/psr-2/ PSR-2]</abbr> that deal with the issue specifically. | ||
== Tools == | |||
Fabien Potencier / Sensio Labs has released the PHP Coding Standards Fixer tool which fixes most issues in your code. It helps you follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents. | Fabien Potencier / Sensio Labs has released the PHP Coding Standards Fixer tool which fixes most issues in your code. It helps you follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents. | ||
* http://cs.sensiolabs.org/ | * http://cs.sensiolabs.org/ ([https://github.com/FriendsOfPHP/PHP-CS-Fixer code]) Note that if you use [[NetBeans]], there is a plugin that will integrate with this tool. | ||
[[Category:Tools]] | [[Category:Tools]] |
Revision as of 08:36, 24 June 2015
In the PHP community, as well as every other development community, there has been a long-standing tradition of establishing 'Coding Standards' that specify how developers should format their code. So, the PHP Framework Interop(ability) Group came up with PSR-1 and PSR-2 that deal with the issue specifically.
Tools[edit]
Fabien Potencier / Sensio Labs has released the PHP Coding Standards Fixer tool which fixes most issues in your code. It helps you follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents.
- http://cs.sensiolabs.org/ (code) Note that if you use NetBeans, there is a plugin that will integrate with this tool.