{"id":20051463,"url":"https://github.com/stickeeuk/larastan-config","last_synced_at":"2025-10-10T00:09:03.433Z","repository":{"id":62890403,"uuid":"560920964","full_name":"stickeeuk/larastan-config","owner":"stickeeuk","description":"Provides a Larastan config for Stickee projects.","archived":false,"fork":false,"pushed_at":"2025-09-01T03:50:48.000Z","size":42,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T16:52:50.463Z","etag":null,"topics":["larastan","php","phpstan"],"latest_commit_sha":null,"homepage":"","language":null,"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/stickeeuk.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-02T14:57:11.000Z","updated_at":"2025-02-12T17:34:30.000Z","dependencies_parsed_at":"2024-11-13T12:03:32.885Z","dependency_job_id":"7ae0aabe-ff1e-4384-9440-62585c9fc34a","html_url":"https://github.com/stickeeuk/larastan-config","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"e45d27e419c070976cd81e0cec930a82812df65e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/stickeeuk/larastan-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Flarastan-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Flarastan-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Flarastan-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Flarastan-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stickeeuk","download_url":"https://codeload.github.com/stickeeuk/larastan-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stickeeuk%2Flarastan-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002367,"owners_count":26083355,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["larastan","php","phpstan"],"created_at":"2024-11-13T12:03:24.956Z","updated_at":"2025-10-10T00:09:03.414Z","avatar_url":"https://github.com/stickeeuk.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# stickee Larastan config\n\nProvides a [Larastan](https://github.com/larastan/larastan) config for stickee projects.\n\nLarastan is a [PHPStan](https://phpstan.org/) wrapper for Laravel.\n\nIt is ran by using the `phpstan` command and so will be referred to as PHPStan from now on.\n\n## Installation\n\n```shell\ncomposer require --dev stickee/larastan-config\ncp vendor/stickee/larastan-config/dist/phpstan.dist.neon phpstan.dist.neon\n```\n\nYou must commit the `phpstan.dist.neon` config file.\n\n## Setup\n\nSee [the upgrade guide on PHPStan](https://github.com/larastan/larastan/blob/3.x/UPGRADE.md#correct-return-types-for-model-relation-methods) for a Rector rule that should be run before using this config.\n\n## Usage\n\n```shell\nvendor/bin/phpstan analyse -c phpstan.dist.neon\n```\n\n[You should always analyse the whole project.](https://phpstan.org/blog/why-you-should-always-analyse-whole-project)\n\n### Overrides\n\nYou may override any of the settings by editing the `phpstan.dist.neon` file.\n\nThe options are available at https://phpstan.org/config-reference.\n\n### Baseline\n\nIt would be a pain to add PHPStan to your project and have to fix all the existing errors before you can start using it. \nFor this reason you can generate a \"baseline\" with this command:\n\n```shell\nvendor/bin/phpstan analyse -c phpstan.dist.neon --generate-baseline\n```\n\nand commit the new `phpstan-baseline.neon` file.\n\nThis means PHPStan will ignore any errors in this file so you can use PHPStan to check for errors in any new code you add.\n\nIf you get any free time you can refer to this file for code that should be fixed and regenerate the baseline (with the same command) afterwards.\n\n## CI\n\nAn example GitHub actions workflow is included at `/dist/.github/workflows/phpstan.yaml`.\n\nIt will run PHPStan against a PR as a \"check\" and output any errors it finds against the commit that failed.\n\nThe action first checks if any PHP files have been changed and if it needs to run at all. This is because PHPStan must analyse all of the application code at once and therefore takes a bit of time, so it's good to skip it if we can.\n\nThe action refers to a CI config at `/dist/.github/workflows/phpstan.ci.neon` (that you can copy into the root of your project) which includes the original config and also ignores unmatched ignored errors to keep the check clean of these errors.\n\n## Problems running PHPStan\n\nThe following are some of the easily fixable problems you may run into using PHPStan and Larastan:\n\n### Access to an undefined property\n\nThere is [a guide on the PHPStan blog](https://phpstan.org/blog/solving-phpstan-access-to-undefined-property) that contains suggestions for fixing this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstickeeuk%2Flarastan-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstickeeuk%2Flarastan-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstickeeuk%2Flarastan-config/lists"}