{"id":14955151,"url":"https://github.com/bigwing/phpcs-composer","last_synced_at":"2026-02-16T10:04:40.572Z","repository":{"id":62494156,"uuid":"285384403","full_name":"bigwing/phpcs-composer","owner":"bigwing","description":"BigWing's PHP Code Sniffer ruleset for WordPress-based projects.","archived":false,"fork":false,"pushed_at":"2020-08-07T18:35:22.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T12:24:18.600Z","etag":null,"topics":["composer","ide","lint","phpcs","phpcs-standard","ruleset","wordpress","wordpress-development"],"latest_commit_sha":null,"homepage":"","language":null,"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/bigwing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-05T19:24:50.000Z","updated_at":"2020-11-10T12:51:47.000Z","dependencies_parsed_at":"2022-11-02T11:18:09.599Z","dependency_job_id":null,"html_url":"https://github.com/bigwing/phpcs-composer","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fphpcs-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fphpcs-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fphpcs-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fphpcs-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigwing","download_url":"https://codeload.github.com/bigwing/phpcs-composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247623006,"owners_count":20968574,"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":["composer","ide","lint","phpcs","phpcs-standard","ruleset","wordpress","wordpress-development"],"created_at":"2024-09-24T13:10:35.331Z","updated_at":"2025-10-03T18:18:39.050Z","avatar_url":"https://github.com/bigwing.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigWing PHPCS Configuration\n\n\u003e Composer library to provide drop in installation and configuration of [WPCS](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) and [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP), setting reasonable defaults for WordPress development with nearly zero configuration.\n\n[![Support Level](https://img.shields.io/badge/support-internal-blue.svg)](#support-level) [![MIT License](https://img.shields.io/github/license/bigwing/phpcs-composer.svg)](https://github.com/bigwing/phpcs-composer/blob/master/LICENSE)\n\n## Installation\n\nInstall the library via Composer:\n\n```bash\n$ composer require --dev bigwing/phpcs-composer:dev-master\n```\n\nThat's it!\n\n## Usage\n\nLint your PHP files with the following command:\n\n```bash\n$ ./vendor/bin/phpcs .\n```\n\nIf relying on Composer, edited the `composer.json` file by adding the following:\n\n```json\n\t\"scripts\": {\n\t\t\"lint\": [\n\t\t\t\"phpcs . --standard=BigWing-WP\"\n\t\t],\n\t}\n```\n\nThen lint via:\n\n```bash\n$ composer run lint\n```\n\n### Continuous Integration\n\nPHPCS Configuration plays nicely with Continuous Integration solutions. Out of the box, the library loads the `BigWing-WP` ruleset, and checks for syntax errors for PHP 7.2 or higher.\n\nTo override the default PHP version check, set the `--runtime-set testVersion 7.2-` configuration option. Example for PHP version 7.4 and above:\n\n```bash\n$ ./vendor/bin/phpcs --runtime-set testVersion 7.4-\n```\n\nSee more [information about specifying PHP version](https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions).\n\nNote that you can only overrule PHP version check from the command-line.\n\n### IDE Integration\n\nSome IDE integrations of PHPCS fail to register the `BigWing-WP` ruleset. In order to rectify this, place `.phpcs.xml.dist` at your project root:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cruleset name=\"Project Rules\"\u003e\n\t\u003crule ref=\"BigWing-WP\" /\u003e\n\u003c/ruleset\u003e\n```\n\n## Support Level\n\n**Internal:** BigWing is working on this for internal projects, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.\n\n## Thanks and Credits\n\n- 10up for their [PHPCS ruleset](https://github.com/10up/phpcs-composer) that this is based on.\n- The [WordPress Coding Standards contributors](https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors) for laying the groundwork for\n  standardized code sniffing in WordPress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigwing%2Fphpcs-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigwing%2Fphpcs-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigwing%2Fphpcs-composer/lists"}