{"id":16830300,"url":"https://github.com/glensc/php-cs-fixer-config","last_synced_at":"2025-04-11T04:11:31.766Z","repository":{"id":62511201,"uuid":"219486171","full_name":"glensc/php-cs-fixer-config","owner":"glensc","description":"Configuration builder for php-cs-fixer","archived":false,"fork":false,"pushed_at":"2023-05-29T12:41:54.000Z","size":73,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:15:09.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glensc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-04T11:31:37.000Z","updated_at":"2023-08-28T12:13:48.000Z","dependencies_parsed_at":"2022-11-02T13:02:07.695Z","dependency_job_id":null,"html_url":"https://github.com/glensc/php-cs-fixer-config","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fphp-cs-fixer-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fphp-cs-fixer-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fphp-cs-fixer-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fphp-cs-fixer-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glensc","download_url":"https://codeload.github.com/glensc/php-cs-fixer-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339224,"owners_count":21087215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T11:38:13.586Z","updated_at":"2025-04-11T04:11:31.748Z","avatar_url":"https://github.com/glensc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-cs-fixer-config\n\nProvides default configuration and configuration builder for [friendsofphp/php-cs-fixer].\n\nDoes the following things:\n- [Filter\\GitFilter](src/Filter/GitFilter.php): Configures to accept only files that are present in Git\n- [Filter\\DefaultFilter](src/Filter/DefaultFilter.php): Configures to include `.php_cs` to file set\n- [Rules\\DefaultRules](src/Rules/DefaultRules.php): Applies set of rules based on @Symfony rules\n- [Rules\\PlatformRules](src/Rules/PlatformRules.php): Enables extra rules that are dependent on PHP version\n\nThe PHP version determined by:\n- read from `composer.lock` (if file present):\n    ```json\n    \"platform-overrides\": {\n        \"php\": \"5.6.0\"\n    }\n    ```\n- read from `composer.json:`\n    ```json\n    \"config\": {\n        \"platform\": {\n          \"php\": \"5.6.0\"\n        }\n    }\n    ```\n\n[friendsofphp/php-cs-fixer]: http://github.com/FriendsOfPHP/PHP-CS-Fixer\n\n## Installation\n\nRun\n\n```sh\n$ composer require --dev glen/php-cs-fixer-config\n```\n\n## Usage\n\n### Configuration\n\nCreate a configuration file `.php_cs` in the root of your project:\n\n```php\n\u003c?php\n// vim:ft=php\n\n/** @var \\glen\\PhpCsFixerConfig\\Config $config */\n$config = require __DIR__ . '/vendor/glen/php-cs-fixer-config/phpcs.php';\n\n$rules = $config-\u003egetRuleBuilder();\n$rules['indentation_type'] = false;\n$rules['class_definition'] = false;\n\nreturn $config;\n```\n\n## License\n\nThis package is licensed using the MIT License.\n\n## Credits\n\nThis project README is inspired by [localheinz/php-cs-fixer-config].\n\n[localheinz/php-cs-fixer-config]: https://github.com/localheinz/php-cs-fixer-config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fphp-cs-fixer-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglensc%2Fphp-cs-fixer-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fphp-cs-fixer-config/lists"}