{"id":21311484,"url":"https://github.com/mhujer/phpstan-rules","last_synced_at":"2025-07-11T23:32:36.805Z","repository":{"id":46225007,"uuid":"97976422","full_name":"mhujer/phpstan-rules","owner":"mhujer","description":"Custom PHPStan Rules (for https://github.com/phpstan/phpstan)","archived":false,"fork":false,"pushed_at":"2021-11-05T12:48:37.000Z","size":44,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T20:33:48.529Z","etag":null,"topics":["php","phpstan","phpstan-extension","phpstan-rules","static-analysis"],"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/mhujer.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}},"created_at":"2017-07-21T18:31:22.000Z","updated_at":"2022-01-01T10:16:32.000Z","dependencies_parsed_at":"2022-09-25T05:00:43.581Z","dependency_job_id":null,"html_url":"https://github.com/mhujer/phpstan-rules","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhujer%2Fphpstan-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhujer","download_url":"https://codeload.github.com/mhujer/phpstan-rules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225769356,"owners_count":17521271,"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":["php","phpstan","phpstan-extension","phpstan-rules","static-analysis"],"created_at":"2024-11-21T17:18:33.858Z","updated_at":"2024-11-21T17:18:34.688Z","avatar_url":"https://github.com/mhujer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom PHPStan Rules\n\n[![Build Status](https://travis-ci.org/mhujer/phpstan-rules.svg)](https://travis-ci.org/mhujer/phpstan-rules)\n[![Coverage Status](https://coveralls.io/repos/github/mhujer/phpstan-rules/badge.svg)](https://coveralls.io/github/mhujer/phpstan-rules)\n[![Latest Stable Version](https://poser.pugx.org/mhujer/phpstan-rules/v/stable)](https://packagist.org/packages/mhujer/phpstan-rules)\n[![License](https://poser.pugx.org/mhujer/phpstan-rules/license)](https://packagist.org/packages/mhujer/phpstan-rules)\n\nThis repository provides following custom rules for [PHPStan](https://github.com/phpstan/phpstan):\n\n* Check that the `__construct()` is the first method in the class.\n* If the `__construct` contains `Doctrine\\ORM\\EntityManagerInterface` as a parameter, it must be sorted as the last one.\n\n\n## Usage\n\nTo use those rules, require them in [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require --dev mhujer/phpstan-rules\n```\n\nAnd include them in your project's PHPStan config:\n\n```yaml\nincludes:\n    - vendor/mhujer/phpstan-rules/rules.neon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhujer%2Fphpstan-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhujer%2Fphpstan-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhujer%2Fphpstan-rules/lists"}