{"id":16672787,"url":"https://github.com/dbrumann/phpstan-rules","last_synced_at":"2025-04-09T20:02:20.462Z","repository":{"id":56951380,"uuid":"181544628","full_name":"dbrumann/phpstan-rules","owner":"dbrumann","description":"Collection of custom PHPStan rules","archived":false,"fork":false,"pushed_at":"2020-06-26T12:35:23.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T20:01:53.328Z","etag":null,"topics":["phpstan","phpstan-rules"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrumann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-15T18:32:52.000Z","updated_at":"2020-06-06T20:36:42.000Z","dependencies_parsed_at":"2022-08-21T09:20:09.685Z","dependency_job_id":null,"html_url":"https://github.com/dbrumann/phpstan-rules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrumann%2Fphpstan-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrumann%2Fphpstan-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrumann%2Fphpstan-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrumann%2Fphpstan-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrumann","download_url":"https://codeload.github.com/dbrumann/phpstan-rules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["phpstan","phpstan-rules"],"created_at":"2024-10-12T12:07:18.296Z","updated_at":"2025-04-09T20:02:20.415Z","avatar_url":"https://github.com/dbrumann.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Custom PHPStan Rules\n====================\n\nCollection of custom PHPStan rules.\n\n:warning: This is just a Proof of Concept\n\nInstallation\n------------\n\n```bash\ncomposer require --dev brumann/phpstan-rules\n```\n\nUsage\n-----\n\nTo enable all rules with their default configuration you can just include the provided `rules.neon` file in your\n`phpstan.neon` like this:\n\n```yaml\nincludes:\n    - vendor/brumann/phpstan-rules/rules.neon\n```\n\nIf you want to enable only selective rules you can also manually configure the rules in your `phpstan.neon` as\nis described in the docs: https://github.com/phpstan/phpstan#custom-rules\n\nRules\n-----\n\n**ConstructorPreferInterface**\n\nThis Rule ensures that when a constructor argument is an object, type hints are for an appropriate interface, instead\nof a concrete implementation. Optionally you can provide a list of Interfaces to be ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrumann%2Fphpstan-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrumann%2Fphpstan-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrumann%2Fphpstan-rules/lists"}