The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards, whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can also define your (team’s) style through configuration. It can modernize your code (like converting the pow function to the operator on PHP 5.6) and (micro) optimize it. If you are already using a linter to identify coding standards problems in your code, you know that fixing them by hand is tedious, especially on large projects. This tool does not only detect them, but also fixes them for you. If you need to apply code styles that are not supported by the tool, you can create custom rules. Dedicated plugins exist for Atom, NetBeans, PhpStorm, Sublime Text, Vim, and VS Code.

Features

  • PHP Coding Standards Fixer helps you fix your code to follow standards
  • It can modernize your code and optimize it
  • It helps you not only to detect issues, but also fixes them for you
  • The recommended way to install PHP CS Fixer is to use Composer in a dedicated composer.json file in your project
  • If you need to apply code styles that are not supported by the tool, you can create custom rules
  • Bug reports and ideas about new features are welcome

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PHP Coding Standards Fixer

PHP Coding Standards Fixer Web Site

Other Useful Business Software
Passwordless Authentication and Passwordless Security Icon
Passwordless Authentication and Passwordless Security

Identity is everything. Protect it with Duo.

It’s no secret — passwords can be a real headache, both for the people who use them and the people who manage them. Over time, we’ve created hundreds of passwords, it’s easy to lose track of them and they’re easily compromised. Fortunately, passwordless authentication is becoming a feasible reality for many businesses. Duo can help you get there.
Get a Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PHP Coding Standards Fixer!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Source Code Analysis Tool

Registered

2021-06-08