All Projects → FriendsOfPHP → Php Cs Fixer

FriendsOfPHP / Php Cs Fixer

Licence: other
A tool to automatically fix PHP Coding Standards issues

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Php Cs Fixer

Scalastyle
scalastyle
Stars: ✭ 679 (-93.66%)
Mutual labels:  static-analysis, code-style
Pep8speaks
A GitHub app to automatically review Python code style over Pull Requests
Stars: ✭ 546 (-94.9%)
Mutual labels:  static-analysis, code-style
vscode-checkstyle
Haxe Checkstyle extension for Visual Studio Code
Stars: ✭ 24 (-99.78%)
Mutual labels:  static-analysis, code-style
Php Cs Fixer Custom Fixers
A set of custom fixers for PHP CS Fixer
Stars: ✭ 75 (-99.3%)
Mutual labels:  static-analysis, code-style
Sast Scan
Fully open-source SAST scanner supporting a range of languages and frameworks. Integrates with major CI pipelines and IDE such as Azure DevOps, Google CloudBuild, VS Code and Visual Studio. No server required!
Stars: ✭ 104 (-99.03%)
Mutual labels:  static-analysis
Unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 96 (-99.1%)
Mutual labels:  static-analysis
Amdh
Android Mobile Device Hardening
Stars: ✭ 95 (-99.11%)
Mutual labels:  static-analysis
Securify2
Securify v2.0
Stars: ✭ 92 (-99.14%)
Mutual labels:  static-analysis
Java Disassembler
The Java Disassembler
Stars: ✭ 114 (-98.94%)
Mutual labels:  static-analysis
Stingray
IDAPython plugin for finding function strings recursively
Stars: ✭ 110 (-98.97%)
Mutual labels:  static-analysis
Crab
CoRnucopia of ABstractions: a library for building abstract interpretation-based analyses
Stars: ✭ 102 (-99.05%)
Mutual labels:  static-analysis
Phpstan Drupal
Extension for PHPStan to allow analysis of Drupal code.
Stars: ✭ 97 (-99.09%)
Mutual labels:  static-analysis
Gopherci
GopherCI was a project to help you maintain high-quality Go projects, by checking each GitHub Pull Request, for backward incompatible changes, and a suite of other third party static analysis tools.
Stars: ✭ 105 (-99.02%)
Mutual labels:  static-analysis
Jpacman Framework
Pacman-inspired game, for teaching testing purposes.
Stars: ✭ 95 (-99.11%)
Mutual labels:  static-analysis
Haxe Checkstyle
Haxe Checkstyle
Stars: ✭ 110 (-98.97%)
Mutual labels:  static-analysis
Babel Plugin I18next Extract
Babel plugin that statically extracts i18next and react-i18next translation keys.
Stars: ✭ 93 (-99.13%)
Mutual labels:  static-analysis
Panopticon
A libre cross-platform disassembler.
Stars: ✭ 1,376 (-87.15%)
Mutual labels:  static-analysis
Analyzer
🔍 Offline Analyzer for extracting features, artifacts and IoCs from Windows, Linux, Android, iPhone, Blackberry, macOS binaries, emails and more
Stars: ✭ 108 (-98.99%)
Mutual labels:  static-analysis
Ikos
Static analyzer for C/C++ based on the theory of Abstract Interpretation.
Stars: ✭ 1,368 (-87.23%)
Mutual labels:  static-analysis
Awesome Golang Security
Awesome Golang Security resources 🕶🔐
Stars: ✭ 1,355 (-87.35%)
Mutual labels:  static-analysis

PHP CS Fixer logo

PHP Coding Standards Fixer

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.

Documentation

Installation

The recommended way to install PHP CS Fixer is to use Composer in a dedicated composer.json file in your project, for example in the tools/php-cs-fixer directory:

$ mkdir --parents tools/php-cs-fixer
$ composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer

For more details and other installation methods, see installation instructions.

Usage

Assuming you installed PHP CS Fixer as instructed above, you can run the following command to fix the files PHP files in the src directory:

$ tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src

See usage, list of built-in rules, list of rule sets and configuration file documentation for more details.

If you need to apply code styles that are not supported by the tool, you can create custom rules.

Editor Integration

Dedicated plugins exist for:

Community

The PHP CS Fixer is maintained on GitHub at https://github.com/FriendsOfPHP/PHP-CS-Fixer. Bug reports and ideas about new features are welcome there.

You can reach us at https://gitter.im/PHP-CS-Fixer/Lobby about the project, configuration, possible improvements, ideas and questions, please visit us!

Contribute

The tool comes with quite a few built-in fixers, but everyone is more than welcome to contribute more of them.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].