{"id":22837325,"url":"https://github.com/muuvmuuv/vscode-php-cs-fixer","last_synced_at":"2026-05-05T12:33:22.255Z","repository":{"id":168247471,"uuid":"643909525","full_name":"muuvmuuv/vscode-php-cs-fixer","owner":"muuvmuuv","description":"Just a simple PHP-CS-Fixer for VS Code","archived":false,"fork":false,"pushed_at":"2024-07-16T10:43:53.000Z","size":1731,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T06:41:05.880Z","etag":null,"topics":["php","php-cs-fixer","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muuvmuuv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["muuvmuuv"],"custom":["https://www.buymeacoffee.com/muuvmuuv"]}},"created_at":"2023-05-22T12:09:23.000Z","updated_at":"2024-07-16T10:43:19.000Z","dependencies_parsed_at":"2024-01-22T11:46:12.339Z","dependency_job_id":"a6c6be1b-1e1a-40eb-a17d-ffe1319a6cfe","html_url":"https://github.com/muuvmuuv/vscode-php-cs-fixer","commit_stats":null,"previous_names":["muuvmuuv/vscode-php-cs-fixer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/muuvmuuv/vscode-php-cs-fixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muuvmuuv%2Fvscode-php-cs-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muuvmuuv%2Fvscode-php-cs-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muuvmuuv%2Fvscode-php-cs-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muuvmuuv%2Fvscode-php-cs-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muuvmuuv","download_url":"https://codeload.github.com/muuvmuuv/vscode-php-cs-fixer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muuvmuuv%2Fvscode-php-cs-fixer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["php","php-cs-fixer","vscode","vscode-extension"],"created_at":"2024-12-12T23:16:23.023Z","updated_at":"2026-05-05T12:33:22.236Z","avatar_url":"https://github.com/muuvmuuv.png","language":"TypeScript","funding_links":["https://github.com/sponsors/muuvmuuv","https://www.buymeacoffee.com/muuvmuuv"],"categories":[],"sub_categories":[],"readme":"![PHP-CS-Fixer](./assets/logo.png)\n\n# PHP Formatter PHP-CS-Fixer\n\n[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/muuvmuuv.vscode-just-php-cs-fixer?style=flat-square\u0026label=VS%20Marketplace)](https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-just-php-cs-fixer)\n[![Installs](https://img.shields.io/visual-studio-marketplace/i/muuvmuuv.vscode-just-php-cs-fixer?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-just-php-cs-fixer)\n[![License](https://img.shields.io/github/license/muuvmuuv/vscode-php-cs-fixer?style=flat-square)](./LICENSE.md)\n\nA lightweight VS Code extension that formats PHP files using [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer). Zero dependencies, auto-discovers your config and executable.\n\n## Features\n\n- Formats PHP files on demand or on save\n- Auto-discovers `vendor/bin/php-cs-fixer` or falls back to global installation\n- Auto-discovers `.php-cs-fixer.php` or `.php-cs-fixer.dist.php` config files\n- Multi-root workspace support\n- Workspace Trust support for security\n- Minimal footprint (~4 KB bundled)\n\n## Requirements\n\n- [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) installed locally or globally\n- PHP available in your PATH\n\n### Install PHP-CS-Fixer\n\n```bash\n# Local installation (recommended)\ncomposer require --dev friendsofphp/php-cs-fixer\n\n# Global installation\ncomposer global require friendsofphp/php-cs-fixer\n```\n\n## Quick Start\n\n1. Install this extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-just-php-cs-fixer)\n2. Install PHP-CS-Fixer via Composer\n3. Create a `.php-cs-fixer.php` config file in your project root\n4. Set this extension as your default PHP formatter:\n\n```json\n{\n  \"[php]\": {\n    \"editor.defaultFormatter\": \"muuvmuuv.vscode-just-php-cs-fixer\",\n    \"editor.formatOnSave\": true\n  }\n}\n```\n\n## Configuration\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `php-cs-fixer.executable` | Auto-detect | Path to PHP-CS-Fixer executable |\n| `php-cs-fixer.config` | Auto-detect | Path to config file |\n| `php-cs-fixer.allow-risky` | `false` | Allow risky rules |\n\n### Example Configuration\n\n```json\n{\n  \"php-cs-fixer.executable\": \"vendor/bin/php-cs-fixer\",\n  \"php-cs-fixer.config\": \".php-cs-fixer.php\",\n  \"php-cs-fixer.allow-risky\": true,\n  \"[php]\": {\n    \"editor.defaultFormatter\": \"muuvmuuv.vscode-just-php-cs-fixer\",\n    \"editor.formatOnSave\": true\n  }\n}\n```\n\n### Example PHP-CS-Fixer Config\n\nCreate a `.php-cs-fixer.php` file in your project root:\n\n```php\n\u003c?php\n\n$finder = PhpCsFixer\\Finder::create()\n    -\u003ein(__DIR__)\n    -\u003eexclude('vendor');\n\nreturn (new PhpCsFixer\\Config())\n    -\u003esetRules([\n        '@PSR12' =\u003e true,\n        '@Symfony' =\u003e true,\n    ])\n    -\u003esetFinder($finder);\n```\n\n## Why This Extension?\n\nOther PHP formatting extensions tend to be complex, bundle PHP-CS-Fixer themselves, or include HTML formatting that conflicts with PHP-CS-Fixer. This extension:\n\n- Does **one thing well** - runs PHP-CS-Fixer\n- Has **zero runtime dependencies**\n- Uses **your** PHP-CS-Fixer installation and config\n- Works seamlessly with other extensions like [Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client)\n\n## Troubleshooting\n\n### Formatting not working?\n\n1. Open the Output panel (`View \u003e Output`)\n2. Select \"PHP-CS-Fixer\" from the dropdown\n3. Check the logs for errors\n\n### Common Issues\n\n| Issue | Solution |\n|-------|----------|\n| Executable not found | Install via `composer require --dev friendsofphp/php-cs-fixer` or set `php-cs-fixer.executable` |\n| Config not found | Create `.php-cs-fixer.php` in project root or set `php-cs-fixer.config` |\n| Untrusted workspace | Grant workspace trust or configure settings at user level |\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build\nnpm run compile\n\n# Watch mode\nnpm run dev\n\n# Run tests\nnpm test\n\n# Package\nnpm run package\n```\n\n## License\n\n[GPLv3](./LICENSE.md)\n\n---\n\nThe PHP-CS-Fixer logo is [© Fabien Potencier](https://github.com/PHP-CS-Fixer/logo/blob/master/logo.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuuvmuuv%2Fvscode-php-cs-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuuvmuuv%2Fvscode-php-cs-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuuvmuuv%2Fvscode-php-cs-fixer/lists"}