{"id":16953984,"url":"https://github.com/eliashaeussler/php-cs-fixer-config","last_synced_at":"2025-07-09T12:40:44.456Z","repository":{"id":65964153,"uuid":"603557599","full_name":"eliashaeussler/php-cs-fixer-config","owner":"eliashaeussler","description":"📝 My personal configuration for PHP-CS-Fixer","archived":false,"fork":false,"pushed_at":"2025-07-06T05:31:16.000Z","size":807,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-06T06:35:42.918Z","etag":null,"topics":["config","php-cs-fixer","rules"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eliashaeussler.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["eliashaeussler"],"custom":["https://paypal.me/eliashaeussler"]}},"created_at":"2023-02-18T21:44:43.000Z","updated_at":"2025-07-06T05:30:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fae8d864-c861-4982-80df-fab7014a21b9","html_url":"https://github.com/eliashaeussler/php-cs-fixer-config","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":"0.39655172413793105","last_synced_commit":"e3bad640636f2d6ff11fe497ebec89554b0895fd"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/eliashaeussler/php-cs-fixer-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fphp-cs-fixer-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fphp-cs-fixer-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fphp-cs-fixer-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fphp-cs-fixer-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliashaeussler","download_url":"https://codeload.github.com/eliashaeussler/php-cs-fixer-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fphp-cs-fixer-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263860858,"owners_count":23521330,"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":["config","php-cs-fixer","rules"],"created_at":"2024-10-13T22:08:28.771Z","updated_at":"2025-07-09T12:40:44.402Z","avatar_url":"https://github.com/eliashaeussler.png","language":"PHP","funding_links":["https://github.com/sponsors/eliashaeussler","https://paypal.me/eliashaeussler"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# PHP-CS-Fixer config\n\n[![Coverage](https://img.shields.io/coverallsCoverage/github/eliashaeussler/php-cs-fixer-config?logo=coveralls)](https://coveralls.io/github/eliashaeussler/php-cs-fixer-config)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability/eliashaeussler/php-cs-fixer-config?logo=codeclimate)](https://codeclimate.com/github/eliashaeussler/php-cs-fixer-config/maintainability)\n[![CGL](https://img.shields.io/github/actions/workflow/status/eliashaeussler/php-cs-fixer-config/cgl.yaml?label=cgl\u0026logo=github)](https://github.com/eliashaeussler/php-cs-fixer-config/actions/workflows/cgl.yaml)\n[![Tests](https://img.shields.io/github/actions/workflow/status/eliashaeussler/php-cs-fixer-config/tests.yaml?label=tests\u0026logo=github)](https://github.com/eliashaeussler/php-cs-fixer-config/actions/workflows/tests.yaml)\n[![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/eliashaeussler/php-cs-fixer-config/php?logo=php)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)\n\n\u003c/div\u003e\n\nThis package contains basic [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)\nconfig for use in my personal projects. It is not meant to be used anywhere else.\nI won't provide support and don't accept pull requests for this repo.\n\n## 🔥 Installation\n\n[![Packagist](https://img.shields.io/packagist/v/eliashaeussler/php-cs-fixer-config?label=version\u0026logo=packagist)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/eliashaeussler/php-cs-fixer-config?color=brightgreen)](https://packagist.org/packages/eliashaeussler/php-cs-fixer-config)\n\n```bash\ncomposer require eliashaeussler/php-cs-fixer-config\n```\n\n## ⚡ Usage\n\nConfigure PHP-CS-Fixer in your `.php-cs-fixer.php` file:\n\n```php\nuse EliasHaeussler\\PhpCsFixerConfig;\nuse Symfony\\Component\\Finder;\n\n// Create header rule\n$header = PhpCsFixerConfig\\Rules\\Header::create(\n    'eliashaeussler/package-name',\n    PhpCsFixerConfig\\Package\\Type::ComposerPackage,\n    PhpCsFixerConfig\\Package\\Author::create('Elias Häußler', 'elias@haeussler.dev'),\n    PhpCsFixerConfig\\Package\\CopyrightRange::from(2021),\n    PhpCsFixerConfig\\Package\\License::GPL3OrLater,\n);\n\n// Create custom rule set\n$ruleSet = PhpCsFixerConfig\\Rules\\RuleSet::fromArray([\n    'modernize_types_casting' =\u003e true,\n    'php_unit_test_case_static_method_calls' =\u003e [\n        'call_type' =\u003e 'self',\n    ],\n]);\n\nreturn PhpCsFixerConfig\\Config::create()\n    -\u003ewithRule($header)\n    -\u003ewithRule($ruleSet)\n    // You can also overwrite all rules\n    -\u003ewithRule($ruleSet, false)\n    -\u003ewithFinder(static fn (Finder\\Finder $finder) =\u003e $finder-\u003ein(__DIR__))\n    // You can also inject your own Finder instance\n    -\u003ewithFinder($finder)\n;\n```\n\n## ⭐ License\n\nThis project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Fphp-cs-fixer-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliashaeussler%2Fphp-cs-fixer-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Fphp-cs-fixer-config/lists"}