{"id":15296314,"url":"https://github.com/ariddlestone/phpstan-cakephp2","last_synced_at":"2025-04-13T19:41:23.238Z","repository":{"id":65814848,"uuid":"578347428","full_name":"ariddlestone/phpstan-cakephp2","owner":"ariddlestone","description":"An extension to help test CakePHP 2 projects with PHPStan","archived":false,"fork":false,"pushed_at":"2024-01-29T21:14:06.000Z","size":90,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-14T22:52:15.189Z","etag":null,"topics":["cakephp2","php","php7","phpstan-extension","static-analysis","static-code-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/ariddlestone.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}},"created_at":"2022-12-14T21:01:14.000Z","updated_at":"2024-01-28T20:31:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"74d662a9-6617-487c-a46a-a4bf56cbdd2f","html_url":"https://github.com/ariddlestone/phpstan-cakephp2","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"1d3e67162d5b02eabc16fab910a3ff3a500da15e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariddlestone%2Fphpstan-cakephp2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariddlestone%2Fphpstan-cakephp2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariddlestone%2Fphpstan-cakephp2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariddlestone%2Fphpstan-cakephp2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariddlestone","download_url":"https://codeload.github.com/ariddlestone/phpstan-cakephp2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248770466,"owners_count":21158982,"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":["cakephp2","php","php7","phpstan-extension","static-analysis","static-code-analysis"],"created_at":"2024-09-30T18:10:02.506Z","updated_at":"2025-04-13T19:41:23.176Z","avatar_url":"https://github.com/ariddlestone.png","language":"PHP","readme":"# PHPStan-CakePHP2\nPHPStan extensions to help test CakePHP 2 projects with PHPStan\n\n## Requirements\n\n* PHP 7.4\n* phpstan/phpstan 1.9+\n* cakephp/cakephp 2.x\n\n## Installation\n\nInstallation is best done through composer:\n```shell\ncomposer require --dev ariddlestone/phpstan-cakephp2\n```\n\nYou will need to make sure the extension is included in your phpstan config:\n```yaml\n# phpstan.neon\nincludes:\n  - vendor/ariddlestone/phpstan-cakephp2/extension.neon\n```\n\nIf you have behavior classes in odd locations (perhaps in a vendor directory) you will need to add those locations to\nyour configuration. For example:\n```yaml\n# phpstan.neon\nparameters:\n  ModelBehaviorsExtension:\n    behaviorPaths:\n      - vendor/my-vendor/my-plugin/src/Model/Behavior/*.php\n```\nSee `extension.neon` for the default list of behavior locations.\n\n## Features\n\nThe following features are added to PHPStan:\n\n* Treat behavior methods as extra methods on all models (`$model-\u003ebehaviorMethod()`)\n* Treat controller properties named after model classes as instances of those classes (`$controller-\u003eModel`)\n* Treat controller properties named after component classes as instances of those classes (`$controller-\u003eComponent`)\n* Treat component properties names after component classes as instances of those classes (`$component-\u003eComponent`)\n* Treat `ClassRegistry::init($className)` as returning an instance of `$className` where possible\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariddlestone%2Fphpstan-cakephp2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariddlestone%2Fphpstan-cakephp2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariddlestone%2Fphpstan-cakephp2/lists"}