Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via composer

friendsofphp/php-cs-fixer v3.49.0

A tool to automatically fix PHP code style
Package summary
Share
0
issues
2
licenses
24
MIT
1
BSD-3-Clause
Package created
27 May 2016
Version published
2 Feb 2024
Maintainers
2
Total deps
25
Direct deps
13
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
24 Packages, Including:
composer/pcre@3.1.3
composer/semver@3.4.0
composer/xdebug-handler@3.0.5
friendsofphp/php-cs-fixer@v3.49.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/console@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/finder@v7.0.7
symfony/options-resolver@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php81@v1.29.0
symfony/process@v7.0.7
symfony/service-contracts@v3.5.0
symfony/stopwatch@v7.0.7
symfony/string@v7.0.7

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sebastian/diff@5.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

13
All Dependencies CSV
β“˜ This is a list of friendsofphp/php-cs-fixer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
composer/semver3.4.028.21 kBMIT
prod
composer/xdebug-handler3.0.5-MIT
prod
sebastian/diff5.1.1-BSD-3-Clause
prod
symfony/consolev7.0.7-MIT
prod
symfony/event-dispatcherv7.0.7-MIT
prod dev
symfony/filesystemv7.0.7-MIT
prod dev
symfony/finderv7.0.7-MIT
prod
symfony/options-resolverv7.0.7-MIT
prod
symfony/polyfill-mbstringv1.29.0-MIT
prod
symfony/polyfill-php80v1.29.0-MIT
prod
symfony/polyfill-php81v1.29.04.96 kBMIT
prod
symfony/processv7.0.7-MIT
prod dev
symfony/stopwatchv7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does friendsofphp/php-cs-fixer do?

Friendsofphp/php-cs-fixer is a powerful tool used to automatically fix PHP coding standards in your codebase. This tool helps developers adhere to specific coding standards like PSR-1, PSR-2, and the Symfony coding standard, among others. Not only does it enforce coding standards, it also offers code modernization (for example, converting the pow function to the ** operator on PHP 5.6) and micro-optimization. The PHP CS Fixer is an invaluable tool for large projects where manually correcting coding standards would be a tedious process.

How do you use friendsofphp/php-cs-fixer?

In order to use Friendsofphp/php-cs-fixer, the first step involves the installation, which is best done using Composer. It's recommended to use a dedicated composer.json file in your project. Here's a step-by-step process:

  1. Create a directory for the tool and require the package.
mkdir -p tools/php-cs-fixer
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer

or you can also use the main composer.json in your project:

composer require --dev friendsofphp/php-cs-fixer
  1. After successfully installing the PHP CS Fixer package, to fix PHP files in a directory (for instance src), you can run:
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src

Remember this will automatically fix the PHP code in the specified directory according to the set standards.

Additional details can be found in the installation instructions in the documentation.

Where are the friendsofphp/php-cs-fixer docs?

The documentation for friendsofphp/php-cs-fixer can be found directly in the GitHub repository.

  1. Installation Instructions: Installation Page
  2. Usage: Usage Page
  3. Available Rules: Rules Page
  4. Rule Sets: Rule Sets Page
  5. Configuration File Documentation: Configuration Page

For creating custom rules, you can refer to Custom Rules Documentation. The documentation clearly elaborates how to utilize this tool effectively and make it seamlessly fit into your development process.