{"id":19300059,"url":"https://github.com/kirschbaum-development/php-cs","last_synced_at":"2026-03-19T09:10:09.941Z","repository":{"id":42071895,"uuid":"155263639","full_name":"kirschbaum-development/php-cs","owner":"kirschbaum-development","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-06T20:47:03.000Z","size":59,"stargazers_count":0,"open_issues_count":6,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-01-05T22:42:05.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/kirschbaum-development.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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}},"created_at":"2018-10-29T18:47:30.000Z","updated_at":"2022-04-13T22:54:47.000Z","dependencies_parsed_at":"2025-01-05T22:51:20.025Z","dependency_job_id":null,"html_url":"https://github.com/kirschbaum-development/php-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fphp-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fphp-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fphp-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirschbaum-development%2Fphp-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirschbaum-development","download_url":"https://codeload.github.com/kirschbaum-development/php-cs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240401370,"owners_count":19795538,"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-09T23:13:33.457Z","updated_at":"2026-03-19T09:10:04.913Z","avatar_url":"https://github.com/kirschbaum-development.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preflight\n1. Clone `kirschbaum-development/php-cs`\n2. `cd kirschbaum-development/php-cs`\n3. `composer install`\n\n# IDE Configuration\n## PHPStorm\n#### Inspections (fixer does not run, only highlights violations)\n1. Set the correct php cs fixer binary in:\n    - Language \u0026 Frameworks -\u003e PHP -\u003e Quality tools\n2. Place the KDG custom .php_cs configuration file in your home directory\n3. Within phpstorm, go to:\n    - Settings -\u003e Editor -\u003e Inspections -\u003e PHP -\u003e Quality tools\n    - Make sure PHP CS Fixer validation is checked\n    - In the right hand pane, after selecting this option, click the browse (`...`) button and select the .php_cs file previously saved in your home directory\n    - Ensure PHP Code Sniffer validation is also set to this Coding Standard in its right pane\n    - Click Apply and OK\n#### File Watcher (fixer runs on save action)\n1. In PHPStorm, create a file watcher (under \"Preferences-\u003eTools\")\n2. Uncheck all of the \"Advanced Options\"\n3. Edit the following settings:\n```\nName: PHP Style fixer\nFile type: PHP\nScope: Current File\nPath: /{your-global-composer-directory}/vendor/friendsofphp/php-cs-fixer/php-cs-fixer\nArguments: fix $FileDir$/$FileName$ --verbose --config={path-to-your-root-php-cs-dir}/php-cs/.php_cs\n```\n## VS Code\n1. Install [PHP CS Fixer](https://marketplace.visualstudio.com/items?itemName=fterrag.vscode-php-cs-fixer) extension\n2. Configure Extension, in `Settings as JSON`\n    ```\n    \"vscode-php-cs-fixer.config\": \"/{path_to_repository}/.php_cs\",\n    \"vscode-php-cs-fixer.toolPath\": \"/{path_to_repository}/vendor/bin/php-cs-fixer\",\n    \"[php]\": {\n        \"editor.defaultFormatter\": \"fterrag.vscode-php-cs-fixer\"\n    },\n    ```\n## Sublime Text 3\n1. Find `PHP CS Fixer` using Package Control: Install Package (cmd-shift-p)\n2. Under Preferences -\u003e Package Settings -\u003e PHP CS Fixer -\u003e Settings - User, configure the extension using the following JSON\n    ```\n    {\n        \"config\": \"/path/to/kirschbaum-development/php-cs/.php_cs\",\n        \"on_save\": true,\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirschbaum-development%2Fphp-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirschbaum-development%2Fphp-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirschbaum-development%2Fphp-cs/lists"}