{"id":20314961,"url":"https://github.com/phphd/coding-standard","last_synced_at":"2025-10-06T02:21:13.034Z","repository":{"id":207903712,"uuid":"716744485","full_name":"phphd/coding-standard","owner":"phphd","description":"PhPhD Coding Standard","archived":false,"fork":false,"pushed_at":"2025-04-18T13:48:40.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T08:44:47.665Z","etag":null,"topics":[],"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/phphd.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,"zenodo":null}},"created_at":"2023-11-09T19:28:51.000Z","updated_at":"2025-04-18T13:15:53.000Z","dependencies_parsed_at":"2025-01-14T12:50:14.238Z","dependency_job_id":"1b904d5a-7861-472e-8f8f-ad25acde243c","html_url":"https://github.com/phphd/coding-standard","commit_stats":null,"previous_names":["phphd/coding-standard"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/phphd/coding-standard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphd%2Fcoding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphd%2Fcoding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphd%2Fcoding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphd%2Fcoding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phphd","download_url":"https://codeload.github.com/phphd/coding-standard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphd%2Fcoding-standard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548010,"owners_count":26004816,"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-10-06T02:00:05.630Z","response_time":65,"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":[],"created_at":"2024-11-14T18:17:25.526Z","updated_at":"2025-10-06T02:21:13.029Z","avatar_url":"https://github.com/phphd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PhPhD Coding Standard\n---------------------\n\n## Installation\n\n1. Add VCS repository in `composer.json` to this package:\n    \n    ```json\n    {\n        \"repositories\": [\n            {\n                \"type\": \"vcs\",\n                \"url\": \"https://github.com/phphd/coding-standard\"\n            }\n        ]\n    }\n    ```\n   \n2. Install via composer:\n   ```sh\n   composer require --dev phphd/coding-standard\n   ```\n   \n3. Add a set list to your `ecs.php` config file:\n\n   ```diff\n   +use PhPhD\\CodingStandard\\ValueObject\\Set\\PhdSetList;\n   use Symplify\\EasyCodingStandard\\Config\\ECSConfig;\n   \n   return static function (ECSConfig $ecsConfig): void {\n       $ecsConfig-\u003epaths([__DIR__.'/']);\n       $ecsConfig-\u003eskip([__DIR__.'/vendor']);\n   \n   +   $ecsConfig-\u003esets([PhdSetList::ecs()-\u003egetPath()]);\n   };\n   ```\n\n4. Add set list to your `rector.php` config file:\n\n    ```diff\n    +use PhPhD\\CodingStandard\\ValueObject\\Set\\PhdSetList;\n    use Rector\\Config\\RectorConfig;\n    use Rector\\ValueObject\\PhpVersion;\n    \n    return static function (RectorConfig $rectorConfig): void {\n        $rectorConfig-\u003epaths([__DIR__.'/']);\n        $rectorConfig-\u003eskip([__DIR__.'/vendor']);\n    \n    +   $rectorConfig-\u003esets([PhdSetList::rector()-\u003egetPath()]);\n        $rectorConfig-\u003ephpVersion(PhpVersion::PHP_80);\n    };\n   ```\n\n5. Run the tools:\n\n    ```shell\n    vendor/bin/ecs check\n    vendor/bin/rector --dry-run\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphd%2Fcoding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphphd%2Fcoding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphd%2Fcoding-standard/lists"}