{"id":17061783,"url":"https://github.com/phlak/codingstandards","last_synced_at":"2025-10-27T06:11:50.200Z","repository":{"id":42509911,"uuid":"289172270","full_name":"PHLAK/CodingStandards","owner":"PHLAK","description":"A pre-defined set of coding standards for PHP CS Fixer.","archived":false,"fork":false,"pushed_at":"2024-12-11T19:36:56.000Z","size":88,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T18:12:20.480Z","etag":null,"topics":["coding-standards","php","php-cs-fixer"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/phlak/coding-standards","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/PHLAK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":"PHLAK","patreon":"PHLAK","custom":"https://paypal.me/ChrisKankiewicz"}},"created_at":"2020-08-21T03:52:54.000Z","updated_at":"2024-12-11T19:37:00.000Z","dependencies_parsed_at":"2024-12-11T04:20:33.611Z","dependency_job_id":"bb4265ef-150e-40f4-9573-ddace08a04ba","html_url":"https://github.com/PHLAK/CodingStandards","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":0.08163265306122447,"last_synced_commit":"02a2b02bcebc67d93cc3f564ad3864bb0d6f12fb"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2FCodingStandards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2FCodingStandards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2FCodingStandards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PHLAK%2FCodingStandards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PHLAK","download_url":"https://codeload.github.com/PHLAK/CodingStandards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610341,"owners_count":21132919,"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-14T10:48:10.895Z","updated_at":"2025-10-27T06:11:50.125Z","avatar_url":"https://github.com/PHLAK.png","language":"PHP","funding_links":["https://github.com/sponsors/PHLAK","https://patreon.com/PHLAK","https://paypal.me/ChrisKankiewicz"],"categories":[],"sub_categories":[],"readme":"PHLAK's Coding Standards\n========================\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/PHLAK/CodingStandards/discussions\"\u003e\u003cimg src=\"https://img.shields.io/badge/Join_the-Community-7b16ff.svg?style=for-the-badge\" alt=\"Join our Community\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/users/PHLAK/sponsorship\"\u003e\u003cimg src=\"https://img.shields.io/badge/Become_a-Sponsor-cc4195.svg?style=for-the-badge\" alt=\"Become a Sponsor\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://paypal.me/ChrisKankiewicz\"\u003e\u003cimg src=\"https://img.shields.io/badge/Make_a-Donation-006bb6.svg?style=for-the-badge\" alt=\"One-time Donation\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://packagist.org/packages/phlak/coding-standards\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/phlak/coding-standards.svg?style=flat-square\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/phlak/coding-standards\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/phlak/coding-standards.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/phlak/coding-standards\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/phlak/coding-standards.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/PHLAK/CodingStandards/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/PHLAK/CodingStandards/test-suite.yaml?branch=master\u0026style=flat-square\" alt=\"Test Suite\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    A pre-defined set of coding standards for PHP CS Fixer\n    \u003cbr\u003e\n    Created by \u003ca href=\"https://www.ChrisKankiewicz.com\"\u003eChris Kankiewicz\u003c/a\u003e (\u003ca href=\"https://bsky.app/profile/phlak.dev\"\u003e@phlak.dev\u003c/a\u003e)\n\u003c/p\u003e\n\n---\n\nRequirements\n------------\n\n  - PHP \u003e= 8.1\n\nInstallation\n------------\n\n    composer require --dev phlak/coding-standards\n\nUsage\n-----\n\nAfter installation you may initialze the coding standards configuration with the provided `cs` executable.\n\n    composer exec cs init\n\nAlternatively you may manually create a `.php-cs-fxer.dist.php` file in the root folder with the following contents.\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$finder = PhpCsFixer\\Finder::create()-\u003ein([\n    // List of paths you wish to include\n]);\n\nreturn PHLAK\\CodingStandards\\ConfigFactory::make($finder);\n```\n\nAdd the paths you wish to be coverd to the array.\n\nNow you may run `php-cs-fixer` as normal.\n\n#### Add / Override Rules\n\nYou can add additional rules or override pre-defined ones by passing them as the second parameter to the `ConfigFactory::make()` method. These rules will be merged with the pre-defined rules.\n\n```php\nreturn PHLAK\\CodingStandards\\ConfigFactory::make($finder, [\n    // Your additional rules here...\n]);\n```\n\n#### Additional Configuration\n\nAdditional configuration can be achieved by chaining methods onto the `ConfigFactory::make()` method.\n\n```php\nreturn PHLAK\\CodingStandards\\ConfigFactory::make($finder)\n    -\u003esetIndent(\"\\t\")\n    -\u003esetLineEnding(\"\\r\\n\")\n    -\u003esetRiskyAllowed();\n```\n\nChangelog\n---------\n\nA list of changes can be found on the [GitHub Releases](https://github.com/PHLAK/CodingStandards/releases) page.\n\nTroubleshooting\n---------------\n\nFor general help and support join our [GitHub Discussions](https://github.com/PHLAK/CodingStandards/discussions) or reach out on [Bluesky](https://bsky.app/profile/phlak.dev).\n\nPlease report bugs to the [GitHub Issue Tracker](https://github.com/PHLAK/CodingStandards/issues).\n\nCopyright\n---------\n\nThis project is licensed under the [MIT License](https://github.com/PHLAK/CodingStandards/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlak%2Fcodingstandards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphlak%2Fcodingstandards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphlak%2Fcodingstandards/lists"}