{"id":20051484,"url":"https://github.com/stickeeuk/php-cs-fixer-config","last_synced_at":"2025-08-16T08:11:15.454Z","repository":{"id":62890410,"uuid":"560476144","full_name":"stickeeuk/php-cs-fixer-config","owner":"stickeeuk","description":"Provides a PHP CS Fixer config for Stickee projects.","archived":false,"fork":false,"pushed_at":"2025-02-03T17:09:23.000Z","size":94,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T11:44:15.938Z","etag":null,"topics":["php","php-cs-fixer"],"latest_commit_sha":null,"homepage":"","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/stickeeuk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2022-11-01T15:29:33.000Z","updated_at":"2025-02-03T17:09:25.000Z","dependencies_parsed_at":"2023-11-08T13:40:47.454Z","dependency_job_id":"cffc0d01-e39a-42da-8cb4-257bd106e321","html_url":"https://github.com/stickeeuk/php-cs-fixer-config","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":"0.31818181818181823","last_synced_commit":"ecce28dda82f7abb7a7477972f3cbd013cc718fb"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/stickeeuk/php-cs-fixer-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Fphp-cs-fixer-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Fphp-cs-fixer-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Fphp-cs-fixer-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Fphp-cs-fixer-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stickeeuk","download_url":"https://codeload.github.com/stickeeuk/php-cs-fixer-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Fphp-cs-fixer-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270684384,"owners_count":24627783,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","php-cs-fixer"],"created_at":"2024-11-13T12:03:35.330Z","updated_at":"2025-08-16T08:11:15.406Z","avatar_url":"https://github.com/stickeeuk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stickee PHP CS Fixer config\n\nProvides a [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) config for stickee projects.\n\n## Installation\n\n```shell\ncomposer require --dev stickee/php-cs-fixer-config\ncp vendor/stickee/php-cs-fixer-config/dist/.php-cs-fixer.php .php-cs-fixer.php\n```\n\nYou must commit the `.php-cs-fixer.php` config file.\n\nYou must add `.php-cs-fixer.cache` to your `.gitignore` file.\n\n\n## Usage\n\n```shell\nvendor/bin/php-cs-fixer fix\n```\n\n### Overrides\n\nYou can override any of the rules or add your own by adding them to the `$overrideRules` array in the `.php-cs-fixer.php` file.\n\nSee [here](https://mlocati.github.io/php-cs-fixer-configurator) for a detailed description of available rules and their options.\n\n#### Example\n\nThis has already been done for you with the `ordered_class_elements` rule which has been reset to the `PSR12` value of `use_traits` only. \n\nThis has been added to help PR reviewers see only what has been changed when linting your project and not elements that have been re-ordered.\n\nOnce you are happy that your project has been linted correctly you may remove this override to use the stickee settings for this rule which are stricter and order more elements.\n\n### CI\n\nAn example GitHub action file is included at `vendor/stickee/php-cs-fixer-config/dist/.github/workflows/php-cs-fixer.yaml`.\n\nThis will run PHP CS Fixer on PRs and new commits to those PRs.\n\n## Rules\n\nThe available RuleSets can be found at `vendor/stickee/php-cs-fixer-config/src/RuleSet/`.\n\nYou can probably \\[ctrl\\] + click the class in the `.php-cs-fixer.php` file to get to it in your editor.\n\n### Web description (prettier)\n\nYou can use either https://mlocati.github.io/php-cs-fixer-configurator/#version:3.2 or https://cs.symfony.com/doc/rules/index.html to see what the rules are doing.\n\n### CLI description (faster)\n\nAlternatively you can run `vendor/bin/php-cs-fixer describe \u003crule-or-set-name\u003e`.\n\n## Credits\n\n### https://github.com/Visual-Craft/php-cs-fixer-config \n\nfor inspiration on how to create a custom config for PHP CS Fixer since there's no built-in way to do it.\n\n### stickeerehan\n\nfor his earlier work on PHP Code Styles so I didn't have to start from scratch.\n\n### The \"supermarket mobiles\" developers\n\nfor reviewing the _many_ PRs that finalised the rules that we use.\n\n### The members of the #codestyle Slack channel\n\nfor caring about code styles.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstickeeuk%2Fphp-cs-fixer-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstickeeuk%2Fphp-cs-fixer-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstickeeuk%2Fphp-cs-fixer-config/lists"}