{"id":14965414,"url":"https://github.com/nette/coding-standard","last_synced_at":"2025-04-04T11:15:18.504Z","repository":{"id":45599936,"uuid":"69015567","full_name":"nette/coding-standard","owner":"nette","description":"Nette Coding Standard code checker \u0026 fixer","archived":false,"fork":false,"pushed_at":"2025-02-02T23:54:08.000Z","size":213,"stargazers_count":39,"open_issues_count":2,"forks_count":10,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T10:09:22.275Z","etag":null,"topics":["coding-standard","nette","php-code-sniffer","php-cs-fixer","php71"],"latest_commit_sha":null,"homepage":"https://doc.nette.org/en/contributing/coding-standard","language":"PHP","has_issues":false,"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/nette.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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},"funding":{"github":"dg","custom":"https://nette.org/donate"}},"created_at":"2016-09-23T10:38:47.000Z","updated_at":"2025-02-02T23:54:12.000Z","dependencies_parsed_at":"2023-11-11T16:30:07.556Z","dependency_job_id":"b1889633-372c-423e-b50a-83e5b672b847","html_url":"https://github.com/nette/coding-standard","commit_stats":{"total_commits":194,"total_committers":10,"mean_commits":19.4,"dds":"0.35567010309278346","last_synced_commit":"0a9412f9cee44961fe97185c22660597ed78a977"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcoding-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcoding-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcoding-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcoding-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nette","download_url":"https://codeload.github.com/nette/coding-standard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["coding-standard","nette","php-code-sniffer","php-cs-fixer","php71"],"created_at":"2024-09-24T13:34:43.328Z","updated_at":"2025-04-04T11:15:18.486Z","avatar_url":"https://github.com/nette.png","language":"PHP","readme":"# Nette Coding Standard code checker \u0026 fixer\n\n[![Downloads this Month](https://img.shields.io/packagist/dm/nette/coding-standard.svg)](https://packagist.org/packages/nette/coding-standard)\n[![Latest Stable Version](https://img.shields.io/packagist/v/nette/coding-standard.svg)](https://github.com/nette/coding-standard/releases)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\n\nThis is set of [sniffs](https://github.com/squizlabs/PHP_CodeSniffer) and [fixers](https://github.com/FriendsOfPHP/PHP-CS-Fixer) that **checks and fixes** code of Nette Framework against [Coding Standard in Documentation](https://doc.nette.org/en/contributing/coding-standard).\n\n\n## Installation and Usage\n\nInstall the tool in a global directory. Its name will be for example `/nette-cs`:\n\n```\ncomposer create-project nette/coding-standard /nette-cs\n```\n\nCheck coding standard for PHP 7.1 in folders `src` and `tests`:\n\n```bash\n/nette-cs/ecs check src tests --preset php71\n```\n\nAnd fix it:\n\n```bash\n/nette-cs/ecs fix src tests --preset php71\n```\n\nIf no PHP version is specified, it will try to find out from the `composer.json` file.\n\n\n### GitHub Actions\n\n```yaml\n# .github/workflows/coding-style.yml\nsteps:\n    - uses: actions/checkout@v2\n    - uses: shivammathur/setup-php@v2\n      with:\n          php-version: 8.0\n\n    - run: composer create-project nette/coding-standard temp/coding-standard\n    - run: php temp/coding-standard/ecs check src tests --preset php71\n\n```\n","funding_links":["https://github.com/sponsors/dg","https://nette.org/donate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette%2Fcoding-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnette%2Fcoding-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette%2Fcoding-standard/lists"}