mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 16:54:00 +02:00
Link to "new" location of PSRs
This commit is contained in:
@@ -29,7 +29,7 @@ applications that implement the components can have consistency even when workin
|
||||
You can use [PHP_CodeSniffer][phpcs] to check code against any one of these recommendations, and plugins for text
|
||||
editors like [Sublime Text 2][st-cs] to be given real time feedback.
|
||||
|
||||
You can fix the code layout automatically by using one of the two following tools. One is the [PHP Coding Standards Fixer][phpcsfixer] which has a very well tested codebase.
|
||||
You can fix the code layout automatically by using one of the two following tools. One is the [PHP Coding Standards Fixer][phpcsfixer] which has a very well tested codebase.
|
||||
Another option is [php.tools][phptools], which is made popular by the [sublime-phpfmt][sublime-phpfmt] editor plugin. While being newer, it makes great improvements in performance, meaning real-time editor fixing is more fluid.
|
||||
|
||||
And you can run phpcs manually from shell:
|
||||
@@ -46,10 +46,10 @@ readable by all current and future parties who may be working on the codebase.
|
||||
|
||||
|
||||
[fig]: http://www.php-fig.org/
|
||||
[psr0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
|
||||
[psr1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
|
||||
[psr2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
|
||||
[psr4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
|
||||
[psr0]: http://www.php-fig.org/psr/psr-0/
|
||||
[psr1]: http://www.php-fig.org/psr/psr-1/
|
||||
[psr2]: http://www.php-fig.org/psr/psr-2/
|
||||
[psr4]: http://www.php-fig.org/psr/psr-4/
|
||||
[pear-cs]: http://pear.php.net/manual/en/standards.php
|
||||
[symfony-cs]: http://symfony.com/doc/current/contributing/code/standards.html
|
||||
[phpcs]: http://pear.php.net/package/PHP_CodeSniffer/
|
||||
|
Reference in New Issue
Block a user