{"id":19107780,"url":"https://github.com/alleyinteractive/alley-coding-standards","last_synced_at":"2026-01-28T23:10:22.752Z","repository":{"id":46484625,"uuid":"247140817","full_name":"alleyinteractive/alley-coding-standards","owner":"alleyinteractive","description":"Linting rules for Alley Interactive","archived":false,"fork":false,"pushed_at":"2025-10-29T19:17:06.000Z","size":140,"stargazers_count":7,"open_issues_count":4,"forks_count":2,"subscribers_count":30,"default_branch":"develop","last_synced_at":"2025-10-29T20:47:46.931Z","etag":null,"topics":["wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alleyinteractive.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-13T18:49:29.000Z","updated_at":"2025-10-29T19:27:07.000Z","dependencies_parsed_at":"2024-06-18T22:42:31.503Z","dependency_job_id":"d9b2f1ed-cf02-44dc-838f-1abc22c6eee5","html_url":"https://github.com/alleyinteractive/alley-coding-standards","commit_stats":{"total_commits":49,"total_committers":8,"mean_commits":6.125,"dds":0.4693877551020408,"last_synced_commit":"b580145f8aef1a6b7691f1c1c90fdf68bce4ab5f"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/alleyinteractive/alley-coding-standards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Falley-coding-standards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Falley-coding-standards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Falley-coding-standards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Falley-coding-standards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alleyinteractive","download_url":"https://codeload.github.com/alleyinteractive/alley-coding-standards/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alleyinteractive%2Falley-coding-standards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28854547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"ssl_error","status_checked_at":"2026-01-28T22:56:00.861Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["wordpress"],"created_at":"2024-11-09T04:13:57.058Z","updated_at":"2026-01-28T23:10:22.733Z","avatar_url":"https://github.com/alleyinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alley Coding Standards\n\n[![Example of a badge pointing to the readme standard spec](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\nThis is a PHPCS ruleset for [Alley Interactive](https://alley.com).\n\n## Installation\n\nTo use this standard in a project, declare it as a dependency.\n\n```bash\ncomposer require --dev alleyinteractive/alley-coding-standards\n```\n\nThis will install the latest compatible version of PHPCS, WPCS, and VIPCS to your vendor directory in order to run sniffs locally.\n\nYou can also manually add this to your project's `composer.json` file as part of the `require` property:\n\n```json\n\"require\": {\n\t\"alleyinteractive/alley-coding-standards\": \"^2.0\"\n}\n```\n\n## Usage\n\nTo use this standard with `phpcs` directly from your command line, use the command:\n\n```bash\nvendor/bin/phpcs --standard=Alley-Interactive .\n```\n\nAlternatively, you can set this as a composer script, which will automatically reference the correct version of `phpcs` and the dependent standards.\n\n```json\n\"scripts\": {\n\t\"phpcs\" : \"phpcs --standard=Alley-Interactive .\"\n}\n```\n\nThen use the following command:\n\n```bash\ncomposer run phpcs\n```\n\nYou can also pass arguments to the composer phpcs script, following a `--` operator like this:\n\n```bash\ncomposer run phpcs -- --report=summary\n```\n\n### Extending the Ruleset\n\nYou can create a custom ruleset for your project that extends or customizes\nthese rules by creating your own `phpcs.xml` file in your project, which\nreferences these rules, like this:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cruleset\u003e\n  \u003cdescription\u003eExample project ruleset\u003c/description\u003e\n\n  \u003c!-- Include Alley Rules --\u003e\n  \u003crule ref=\"Alley-Interactive\" /\u003e\n\n  \u003c!-- Project customizations go here --\u003e\n\u003c/ruleset\u003e\n```\n\n## Testing\n\nWhen contributing to this project, modifications to the ruleset should have a\ncorresponding test in the `tests` directory. For the most part, this takes the\nform of a passing test in `tests/fixtures/pass` and a failing one in\n`tests/fixtures/fail`.\n\nYou can run the tests with `composer phpunit`. If you\nwant to run PHPCS against the test fixtures, you can run\n`composer phpcs:fixtures` to ensure that what is passing/failing matches your\nexpectations.\n\n### Special Considerations for failure expectations\nFor failing fixtures in `tests/fixtures/fail`, we recommend\nkeeping the files smaller and focused on the specific sniff being tested.\nA corresponding file should be created in `tests/fixtures/fail/expectations`\nreferencing the expected source of the failures for that test file. Name the file\nthe same as you do the fixture (e.g. `tests/fixtures/fail/foo.php` and `tests/fixtures/fail/expectations/foo.php`).\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Credits\n\nThis project is actively maintained by [Alley Interactive](https://github.com/alleyinteractive).\nLike what you see? [Come work with us](https://alley.com/careers/).\n\n## License\n\nThe GNU General Public License (GPL) license. Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Falley-coding-standards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falleyinteractive%2Falley-coding-standards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falleyinteractive%2Falley-coding-standards/lists"}