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

You Might Also Like
Relax: PRTG Monitors Your IT for You Icon
Relax: PRTG Monitors Your IT for You

Stay in control and avoid IT headaches. PRTG monitors your network, devices, and apps - receive alerts when it matters most.

You’re the go-to IT person, always putting out fires and keeping things running. With PRTG, you get reliable alerts to monitor your entire IT infrastructure, without the noise. Our intuitive setup gives you a clear overview of your network, devices, and applications in real time. Get instant alerts only when something needs your attention, whether you’re at your desk or on the move. Spend less time worrying about outages and more time focusing on what matters. Set up PRTG once and let it work for you - PRTG has you covered.
Start Your Free PRTG Trial Now
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