{"id":19146284,"url":"https://github.com/signpostmarv/php-cs-fixer-config","last_synced_at":"2025-07-31T23:34:55.323Z","repository":{"id":57050554,"uuid":"90476304","full_name":"SignpostMarv/PHP-CS-Fixer-Config","owner":"SignpostMarv","description":"PHP-CS-Fixer Config","archived":false,"fork":false,"pushed_at":"2024-01-26T10:54:18.000Z","size":365,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-03T22:39:15.915Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SignpostMarv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-05-06T16:30:20.000Z","updated_at":"2024-04-09T21:15:36.000Z","dependencies_parsed_at":"2024-11-09T07:43:52.256Z","dependency_job_id":"3d2cfbe4-e358-478a-a228-419917f66ca7","html_url":"https://github.com/SignpostMarv/PHP-CS-Fixer-Config","commit_stats":{"total_commits":116,"total_committers":1,"mean_commits":116.0,"dds":0.0,"last_synced_commit":"f187070b7017e8879d3ce1f35608923600b0e371"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2FPHP-CS-Fixer-Config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2FPHP-CS-Fixer-Config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2FPHP-CS-Fixer-Config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2FPHP-CS-Fixer-Config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SignpostMarv","download_url":"https://codeload.github.com/SignpostMarv/PHP-CS-Fixer-Config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240229935,"owners_count":19768588,"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":[],"created_at":"2024-11-09T07:43:45.841Z","updated_at":"2025-02-22T19:49:19.951Z","avatar_url":"https://github.com/SignpostMarv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SignpostMarv's PHP-CS-Fixer config\n\n[![Build Status](https://travis-ci.org/SignpostMarv/PHP-CS-Fixer-Config.svg?branch=master)](https://travis-ci.org/SignpostMarv/PHP-CS-Fixer-Config)\n[![Psalm Type Coverage](https://shepherd.dev/github/SignpostMarv/PHP-CS-Fixer-Config/coverage.svg)](https://shepherd.dev/github/SignpostMarv/PHP-CS-Fixer-Config)\n\nThere's two different versions, one for general use \u0026 one for use on projects that use static analysis.\n\n## Installation \u0026 Usage\n\n1. `composer require --dev signpostmarv/php-cs-fixer-config`\n1. create your `.php_cs` or `.php_cs.dist` file and enter the corresponding\n\tcode for the config you wish to use\n\n### General Use\n\n```php\nreturn \\SignpostMarv\\CS\\Config::createWithPaths(...[\n\t__FILE__,\n\t(__DIR__ . '/src/'),\n\t(__DIR__ . '/tests/'),\n])\n```\n\n#### Use without PHP 7.1 Nullable return types\n\n```php\nreturn \\SignpostMarv\\CS\\ConfigUsedWithoutNullableReturn::createWithPaths(...[\n\t__FILE__,\n\t(__DIR__ . '/src/'),\n\t(__DIR__ . '/tests/'),\n])\n```\n\n### With Static Analysis\n\n```php\nreturn \\SignpostMarv\\CS\\ConfigUsedWithStaticAnalysis::createWithPaths(...[\n\t__FILE__,\n\t(__DIR__ . '/src/'),\n\t(__DIR__ . '/tests/'),\n])\n```\n\n#### Use without PHP 7.1 Nullable return types\n\n```php\nreturn \\SignpostMarv\\CS\\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[\n\t__FILE__,\n\t(__DIR__ . '/src/'),\n\t(__DIR__ . '/tests/'),\n])\n```\n\n### Customising Rules\n\n1. Extend `SignpostMarv\\CS\\Config`\n1. Either\n\t* override the `SignpostMarv\\CS\\Config::DEFAULT_RULES` array const\n\t* override the `SignpostMarv\\CS\\Config::RuntimeResolveRules()` static\n\t\tmethod as in [ConfigUsedWithStaticAnalysis](https://github.com/SignpostMarv/PHP-CS-Fixer-Config/blob/master/src/ConfigUsedWithStaticAnalysis.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignpostmarv%2Fphp-cs-fixer-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignpostmarv%2Fphp-cs-fixer-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignpostmarv%2Fphp-cs-fixer-config/lists"}