{"id":30710791,"url":"https://github.com/brick/coding-standard","last_synced_at":"2026-03-19T11:34:01.468Z","repository":{"id":66173636,"uuid":"505624108","full_name":"brick/coding-standard","owner":"brick","description":"Coding standard for Brick libraries.","archived":false,"fork":false,"pushed_at":"2026-01-03T09:46:34.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-03T21:07:24.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/brick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"BenMorel"}},"created_at":"2022-06-20T23:10:49.000Z","updated_at":"2026-01-03T09:45:14.000Z","dependencies_parsed_at":"2026-01-04T00:05:48.522Z","dependency_job_id":null,"html_url":"https://github.com/brick/coding-standard","commit_stats":null,"previous_names":["brick/coding-standard"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/brick/coding-standard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Fcoding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Fcoding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Fcoding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Fcoding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brick","download_url":"https://codeload.github.com/brick/coding-standard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brick%2Fcoding-standard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"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":[],"created_at":"2025-09-03T01:09:57.579Z","updated_at":"2026-03-05T06:01:54.050Z","avatar_url":"https://github.com/brick.png","language":"PHP","funding_links":["https://github.com/sponsors/BenMorel"],"categories":[],"sub_categories":[],"readme":"# Brick Coding Standard\n\n\u003cimg src=\"https://raw.githubusercontent.com/brick/brick/master/logo.png\" alt=\"\" align=\"left\" height=\"64\"\u003e\n\nCoding standard for Brick libraries.\n\n[![Build Status](https://github.com/brick/coding-standard/workflows/Test/badge.svg)](https://github.com/brick/coding-standard/actions)\n[![Latest Stable Version](https://poser.pugx.org/brick/coding-standard/v/stable)](https://packagist.org/packages/brick/coding-standard)\n[![Total Downloads](https://poser.pugx.org/brick/coding-standard/downloads)](https://packagist.org/packages/brick/coding-standard)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n## Overview\n\nThis coding standard is used in Brick libraries, but can also be used in your own projects.\n\nIt is based on [PSR-12](https://www.php-fig.org/psr/psr-12/) and uses\n[Easy Coding Standard](https://github.com/easy-coding-standard/easy-coding-standard) with\nrules cherry-picked from [PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer),\n[PHP_CodeSniffer](http://github.com/squizlabs/PHP_CodeSniffer), and the\n[Slevomat coding standard](https://github.com/slevomat/coding-standard).\n\n## Release process\n\nThis project is released with sequential version numbers: `v1`, `v2`, etc.\n\nEach new version should be considered as breaking, as it may update dependency versions, add new rules, or modify\nexisting ones.\n\n## Usage\n\n### Use locally\n\nTo use `brick/coding-standard` locally, install it with Composer:\n\n```bash\ncomposer require --dev brick/coding-standard\n```\n\nThen create an `ecs.php` file in the root of your project with the following content:\n\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nuse Symplify\\EasyCodingStandard\\Config\\ECSConfig;\n\nreturn static function (ECSConfig $ecsConfig): void {\n    $ecsConfig-\u003eimport(__DIR__ . '/vendor/brick/coding-standard/ecs.php');\n\n    $ecsConfig-\u003epaths(\n        [\n            __DIR__ . '/src',\n            __DIR__ . '/tests',\n            __FILE__,\n        ],\n    );\n};\n```\n\nYou can then run Easy Coding Standard with:\n\n```bash\nvendor/bin/ecs\n```\n\nor, to fix coding standard violations automatically:\n\n```bash\nvendor/bin/ecs --fix\n```\n\nIf you wish to avoid conflicts with your project dependencies, you may also install ECS in a `tools` directory with its\nown `composer.json` instead. Here is how your directory may look like:\n\n```\ntools/\n└── ecs/\n    ├── composer.json\n    ├── composer.lock\n    └── ecs.php\n    └── vendor/\n        └── ...\n```\n\n### Use in GitHub Actions\n\nYou can integrate `brick/coding-standard` in your GitHub Actions workflow as follows:\n\n```yaml\nname: Coding Standard\n\non:\n  pull_request:\n  push:\n\njobs:\n  coding-standard:\n    name: Coding Standard\n    uses: brick/coding-standard/.github/workflows/coding-standard.yml@v1\n```\n\nBy default, this workflow will run on PHP 8.2. You can change the PHP version by adding:\n\n```yaml\n    with:\n      php-version: 8.5\n```\n\nOnly versions \u003e= `8.2` are supported.\n\nOther options available are:\n\n- `composer-options`\n- `working-directory`\n- `config-file`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrick%2Fcoding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrick%2Fcoding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrick%2Fcoding-standard/lists"}