{"id":28418717,"url":"https://github.com/facile-it/facile-coding-standard","last_synced_at":"2025-06-28T04:31:15.926Z","repository":{"id":16789521,"uuid":"80648379","full_name":"facile-it/facile-coding-standard","owner":"facile-it","description":"Repository with all coding standard ruleset used in Facile.it","archived":false,"fork":false,"pushed_at":"2025-05-30T22:34:41.000Z","size":430,"stargazers_count":10,"open_issues_count":3,"forks_count":8,"subscribers_count":25,"default_branch":"1.x","last_synced_at":"2025-05-31T09:22:21.897Z","etag":null,"topics":["code-style","hacktoberfest","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facile-it.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2017-02-01T18:08:11.000Z","updated_at":"2025-05-30T22:34:43.000Z","dependencies_parsed_at":"2023-10-04T13:47:24.766Z","dependency_job_id":"8465ae52-5b0b-4702-b25d-16f87bcc51d0","html_url":"https://github.com/facile-it/facile-coding-standard","commit_stats":{"total_commits":78,"total_committers":8,"mean_commits":9.75,"dds":0.4358974358974359,"last_synced_commit":"cab0ae4c37209ecae8a34dc78e3c8b49c7d4be96"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/facile-it/facile-coding-standard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffacile-coding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffacile-coding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffacile-coding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffacile-coding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facile-it","download_url":"https://codeload.github.com/facile-it/facile-coding-standard/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facile-it%2Ffacile-coding-standard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262375607,"owners_count":23301318,"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":["code-style","hacktoberfest","php"],"created_at":"2025-06-04T12:20:07.311Z","updated_at":"2025-06-28T04:31:15.903Z","avatar_url":"https://github.com/facile-it.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facile.it PHP Coding Standard\n\n![PHP Version](https://img.shields.io/badge/php-%5E7.4%20%7C%7C%20%5E8.0-blue)\n[![Build status](https://github.com/facile-it/facile-coding-standard/workflows/Continuous%20Integration/badge.svg)]( https://github.com/facile-it/facile-coding-standard/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A1.x)\n[![Code coverage](https://codecov.io/gh/facile-it/facile-coding-standard/branch/1.x/graph/badge.svg?token=HlbkT2oJiB)](https://codecov.io/gh/facile-it/facile-coding-standard)\n\n[![Latest Stable Version](https://poser.pugx.org/facile-it/facile-coding-standard/v/stable)](https://packagist.org/packages/facile-it/facile-coding-standard)\n[![Total Downloads](https://poser.pugx.org/facile-it/facile-coding-standard/downloads)](https://packagist.org/packages/facile-it/facile-coding-standard)\n[![Latest Unstable Version](https://poser.pugx.org/facile-it/facile-coding-standard/v/unstable)](https://packagist.org/packages/facile-it/facile-coding-standard)\n[![License](https://poser.pugx.org/facile-it/facile-coding-standard/license)](https://packagist.org/packages/facile-it/facile-coding-standard)\n[![composer.lock](https://poser.pugx.org/facile-it/facile-coding-standard/composerlock)](https://packagist.org/packages/facile-it/facile-coding-standard)\n\nRepository with PHP coding standard ruleset, based on PHP-CS-Fixer.\n\n## Installation\n\nCurrently, [Composer](https://getcomposer.org/) is the only supported installation tool.\n\n```\n$ composer require --dev facile-it/facile-coding-standard\n```\n\nWhen you install it, a plugin will ask you some questions to setup your project automatically.\n\nThe installer will add a `.php-cs-fixer.dist.php` file in your project root directory,\nthen you can edit manually if you need some changes.\n\nThe CS config will be configured to find your project files using\ncomposer autoload sources.\n\nOnly `psr-0`, `psr-4` and `classmap` autoloads are supported.\n\nThe installer will also add two scripts in your `composer.json`;\n\n```php\n\"scripts\": {\n  \"cs-check\": \"php-cs-fixer fix --dry-run --diff\",\n  \"cs-fix\": \"php-cs-fixer fix --diff\"\n}\n```\n\n## Configuration\n\nThe installation configuration should be enough to use it.\n\nIf you need to change the CS config file, we suggest to don't edit the main `.php-cs-fixer.dist.php` file.\n\nYou can create a new file `.php-cs-fixer.php` with something like this:\n\n```php\n\u003c?php\n\n/** @var PhpCsFixer\\Config $config */\n$config = require __DIR__ . '/.php-cs-fixer.dist.php';\n\n// change your configuration...\n$config-\u003esetUsingCache(false);\n\nreturn $config;\n```\n\n## Usage\n\nTo start code style check:\n\n```\n$ composer cs-check\n```\n\nTo automatically fix code style:\n\n```\n$ composer cs-fix\n```\n\n## PhpCsFixer configuration\n\nSee [PhpCsFixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) GitHub page.\n\n## Risky rules\n\nRisky rules may be unstable, and cause unintended behavioral changes to your code. If you want to add these rules, you can create your own `.php-cs-fixer.php`\nconfiguration:\n\n```php\n\u003c?php\n\n/** @var \\PhpCsFixer\\Config $config */\n$config = include __DIR__ . '/.php-cs-fixer.dist.php';\n\n$rulesProvider = new Facile\\CodingStandards\\Rules\\CompositeRulesProvider([\n    new Facile\\CodingStandards\\Rules\\DefaultRulesProvider(),\n    new Facile\\CodingStandards\\Rules\\RiskyRulesProvider(),\n    new Facile\\CodingStandards\\Rules\\ArrayRulesProvider([\n        // additional rules or rules to override\n    ]),\n]);\n\n$config-\u003esetRules($rulesProvider-\u003egetRules());\n\nreturn $config;\n\n```\n\n## Generate configuration\n\nIf you have any problem updating to a new version, you can regenerate\nthe default `.php-cs-fixer.dist.php` with the command:\n\n```\n$ composer facile-cs-create-config\n```\n\n```\n$ composer facile-cs-create-config --help\n\nUsage:\n  facile-cs-create-config [options]\n\nOptions:\n      --no-dev                   Do not include autoload-dev directories\n      --no-risky                 Do not include risky rules\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacile-it%2Ffacile-coding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacile-it%2Ffacile-coding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacile-it%2Ffacile-coding-standard/lists"}