{"id":16390187,"url":"https://github.com/slamdunk/php-cs-fixer-extensions","last_synced_at":"2025-04-12T21:28:56.334Z","repository":{"id":19452161,"uuid":"87068451","full_name":"Slamdunk/php-cs-fixer-extensions","owner":"Slamdunk","description":"PHP-CS-Fixer extensions and configurations","archived":false,"fork":false,"pushed_at":"2024-10-08T19:52:00.000Z","size":226,"stargazers_count":68,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-12T04:35:06.962Z","etag":null,"topics":["coding-standards","php","php-cs-fixer"],"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/Slamdunk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Slamdunk"],"custom":"https://paypal.me/filippotessarotto"}},"created_at":"2017-04-03T11:50:49.000Z","updated_at":"2024-10-08T19:52:03.000Z","dependencies_parsed_at":"2024-02-15T06:26:25.592Z","dependency_job_id":"ef001344-378b-4fcc-b12d-4a0a2b63016e","html_url":"https://github.com/Slamdunk/php-cs-fixer-extensions","commit_stats":{"total_commits":110,"total_committers":1,"mean_commits":110.0,"dds":0.0,"last_synced_commit":"7cb5cb3fdf11c7dd57afc94ac163d68784cd255c"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-cs-fixer-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-cs-fixer-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-cs-fixer-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-cs-fixer-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Slamdunk","download_url":"https://codeload.github.com/Slamdunk/php-cs-fixer-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248634082,"owners_count":21136974,"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":["coding-standards","php","php-cs-fixer"],"created_at":"2024-10-11T04:35:11.926Z","updated_at":"2025-04-12T21:28:56.310Z","avatar_url":"https://github.com/Slamdunk.png","language":"PHP","readme":"# Slam PHP-CS-Fixer extensions\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/slam/php-cs-fixer-extensions.svg)](https://packagist.org/packages/slam/php-cs-fixer-extensions)\n[![Downloads](https://img.shields.io/packagist/dt/slam/php-cs-fixer-extensions.svg)](https://packagist.org/packages/slam/php-cs-fixer-extensions)\n[![Integrate](https://github.com/Slamdunk/php-cs-fixer-extensions/workflows/CI/badge.svg?branch=master)](https://github.com/Slamdunk/php-cs-fixer-extensions/actions)\n\n[PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) extensions and configurations\n\n## Installation\n\nExecute:\n\n`composer require --dev slam/php-cs-fixer-extensions`\n\n## Usage\n\nIn your `.php_cs` file:\n\n```php\n\u003c?php\n\n$config = new PhpCsFixer\\Config();\n\n$config-\u003esetRiskyAllowed(true);\n\n$config-\u003eregisterCustomFixers([\n    new SlamCsFixer\\FinalAbstractPublicFixer(),\n    new SlamCsFixer\\FinalInternalClassFixer(),\n    new SlamCsFixer\\FunctionReferenceSpaceFixer(),\n    new SlamCsFixer\\InlineCommentSpacerFixer(),\n    new SlamCsFixer\\PhpFileOnlyProxyFixer(new PhpCsFixer\\Fixer\\Basic\\BracesFixer()),\n    new SlamCsFixer\\Utf8Fixer(),\n]);\n\n$this-\u003esetRules([\n    'Slam/final_abstract_public' =\u003e true,\n    'Slam/final_internal_class' =\u003e true,\n    'Slam/function_reference_space' =\u003e true,\n    'Slam/inline_comment_spacer' =\u003e true,\n    'Slam/php_only_braces' =\u003e true,\n    'Slam/utf8' =\u003e true,\n]);\n\n$config-\u003egetFinder()\n    -\u003ein(__DIR__ . '/app')\n    -\u003ein(__DIR__ . '/tests')\n    -\u003ename('*.phtml')\n;\n\nreturn $config;\n```\n","funding_links":["https://github.com/sponsors/Slamdunk","https://paypal.me/filippotessarotto"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdunk%2Fphp-cs-fixer-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslamdunk%2Fphp-cs-fixer-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdunk%2Fphp-cs-fixer-extensions/lists"}