[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8139":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},8139,"PHP-CS-Fixer","PHP-CS-Fixer\u002FPHP-CS-Fixer","A tool to automatically fix PHP Coding Standards issues","https:\u002F\u002Fcs.symfony.com",null,"PHP",13529,1634,199,40,0,1,4,22,75.84,"MIT License",false,"master",[24,25,26,27],"code-standards","code-style","php","static-analysis","2026-06-12 04:00:37","\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fcs.symfony.com\">\n        \u003Cimg src=\".\u002Flogo.png\" title=\"PHP CS Fixer\" alt=\"PHP CS Fixer logo\">\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n# PHP Coding Standards Fixer\n\nThe PHP Coding Standards Fixer (PHP CS Fixer) fixes your code to follow the standards.\n\nIf you are already using a linter to identify coding standards problems in your\ncode, you know that fixing them by hand is tedious, especially on large\nprojects. This tool not only detects them, but also fixes them for you.\n\nPHP CS Fixer has built-in rule sets, whether you want to follow PHP coding standards as defined by [PHP-FIG's PER Coding Style](https:\u002F\u002Fwww.php-fig.org\u002Fper\u002Fcoding-style\u002F) - [`@PER-CS`](.\u002Fdoc\u002FruleSets\u002FPER-CS.rst),\na wide community like the [Symfony](https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcontributing\u002Fcode\u002Fstandards.html) - [`@Symfony`](.\u002Fdoc\u002FruleSets\u002FSymfony.rst),\nor our opinionated one - [@PhpCsFixer](.\u002Fdoc\u002FruleSets\u002FPhpCsFixer.rst).\nYou can also define your (team's) style through the [configuration file](.\u002Fdoc\u002Fconfig.rst).\n\nPHP CS Fixer can not only unify the style of your code, but also help to modernise your codebase towards\nnewer PHP (e.g. [`@autoPHPMigration`](.\u002Fdoc\u002FruleSets\u002FAutoPHPMigration.rst) and [`@autoPHPMigration:risky`](.\u002Fdoc\u002FruleSets\u002FAutoPHPMigrationRisky.rst)) and newer PHPUnit (e.g. [`@autoPHPUnitMigration:risky`](.\u002Fdoc\u002FruleSets\u002FAutoPHPUnitMigrationRisky.rst)).\n\nThere are also [`@auto`](.\u002Fdoc\u002FruleSets\u002FAuto.rst) and [`@auto:risky`](.\u002Fdoc\u002FruleSets\u002FAutoRisky.rst) that aim to provide good base rules.\n\n## Supported PHP Versions\n\n* PHP 7.4 - PHP 8.5\n\n> [!NOTE]\n> Each new PHP version requires a huge effort to support the new syntax.\n> That's why the latest PHP version might not be supported yet. If you need it,\n> please consider supporting the project in any convenient way, for example,\n> with code contributions or reviewing existing PRs. To run PHP CS Fixer on yet\n> unsupported versions \"at your own risk\" - use `--allow-unsupported-php-version=yes` option.\n\n## Documentation\n\n### Installation\n\nThe recommended way to install PHP CS Fixer is to use [Composer](https:\u002F\u002Fgetcomposer.org\u002Fdownload\u002F):\n\n```sh\ncomposer require --dev friendsofphp\u002Fphp-cs-fixer\n## or when facing conflicts in dependencies:\ncomposer require --dev php-cs-fixer\u002Fshim\n```\n\nFor more details and other installation methods (also with Docker or behind CI), see\n[installation instructions](.\u002Fdoc\u002Finstallation.rst).\n\n### Usage\n\nAssuming you installed PHP CS Fixer as instructed above, you can\ninitialise base config for your project by using following command:\n\n```sh\n.\u002Fvendor\u002Fbin\u002Fphp-cs-fixer init\n```\n\nTo automatically fix your project, or only check against the need of changes, run:\n\n```sh\n.\u002Fvendor\u002Fbin\u002Fphp-cs-fixer fix\n.\u002Fvendor\u002Fbin\u002Fphp-cs-fixer check\n```\n\nSee [usage](.\u002Fdoc\u002Fusage.rst), list of [built-in rules](.\u002Fdoc\u002Frules\u002Findex.rst), list of [rule sets](.\u002Fdoc\u002FruleSets\u002Findex.rst)\nand [configuration file](.\u002Fdoc\u002Fconfig.rst) documentation for more details.\n\nIf you need to apply code styles that are not built-in into the tool, you can\n[create custom rules](.\u002Fdoc\u002Fcustom_rules.rst).\n\n## Editor Integration\n\nNative support exists for:\n\n* [PhpStorm](https:\u002F\u002Fwww.jetbrains.com\u002Fhelp\u002Fphpstorm\u002Fusing-php-cs-fixer.html)\n\nCommunity plugins exist for:\n\n* [NetBeans](https:\u002F\u002Fplugins.netbeans.apache.org\u002Fcatalogue\u002F?id=36)\n* [Sublime Text](https:\u002F\u002Fgithub.com\u002Fbenmatselby\u002Fsublime-phpcs)\n* [Vim](https:\u002F\u002Fgithub.com\u002Fstephpy\u002Fvim-php-cs-fixer)\n* [VS Code](https:\u002F\u002Fgithub.com\u002Fjunstyle\u002Fvscode-php-cs-fixer)\n\n## Community\n\nThe PHP CS Fixer is maintained on GitHub at \u003Chttps:\u002F\u002Fgithub.com\u002FPHP-CS-Fixer\u002FPHP-CS-Fixer>.\nContributions, bug reports and ideas about new features are welcome there.\n\nYou can reach us in the [GitHub Discussions](https:\u002F\u002Fgithub.com\u002FPHP-CS-Fixer\u002FPHP-CS-Fixer\u002Fdiscussions\u002F) regarding the\nproject, configuration, possible improvements, ideas and questions.\n\n## Contribute\n\nThe tool comes with quite a few built-in fixers, but everyone is more than\nwelcome to [contribute](.\u002FCONTRIBUTING.md) more of them.\n","PHP-CS-Fixer 是一个自动修复 PHP 代码风格问题的工具。它能够检测并修正不符合编码标准的问题，支持多种内置规则集，如 PHP-FIG 的 PER 编码风格、Symfony 社区风格等，同时允许用户自定义团队的编码规范。此外，PHP CS Fixer 还能帮助现代化你的代码库，使其符合更新版本的 PHP 和 PHPUnit 要求。适用于需要统一和提升代码质量的各种 PHP 开发场景，无论是个人项目还是大型团队协作，都能从中受益。",2,"2026-06-11 03:16:22","top_language"]