• XEN DEVELOPMENT is a developer's resource for new developers wanting to build XenForo 2 add-ons. Experienced developers are also welcome to share their experienes and knowledge. This site is not affiliated with XenForo or a replacement for the official XenForo developer forums.

Beginners PHP Coding Standards Fixer (PHP CS-Fixer)

LPH

Flight Director
Staff member
PHP Developers can choose between many different PHP coding styles. For example, WordPress requires a coding style standard, Symfony has one, and there is the PSR-2 coding style standard. The key is to choose one and use it consistently throughout your project.

PHP Coding Standards Fixer (CS-Fixer) is a tool to help with the consistency. It can be installed through Composer or manually.

A PHP Linter identifies problems in code. CS-Fixer will identify problems and fix them.
 
Top