[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8289":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},8289,"larastan","larastan\u002Flarastan","⚗️ Adds code analysis to Laravel improving developer productivity and code quality.","",null,"PHP",6424,492,48,81,0,1,13,37,10,39.08,"MIT License",false,"3.x",[25,26,27,28],"code-analysis","laravel","php","phpstan","2026-06-12 02:01:51","\u003Cp align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flarastan\u002Flarastan\u002Fmaster\u002Fdocs\u002Flogo.png\" alt=\"Larastan Logo\" width=\"300\">\n    \u003Cbr>\u003Cbr>\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flarastan\u002Flarastan\u002Fmaster\u002Fdocs\u002Fexample.png\" alt=\"Larastan Example\" height=\"300\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flarastan\u002Flarastan\u002Factions\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Flarastan\u002Flarastan\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg\" alt=\"Build Status\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Flarastan\u002Flarastan\u002Fstats\">\u003Cimg src=\"https:\u002F\u002Fposer.pugx.org\u002Flarastan\u002Flarastan\u002Fd\u002Ftotal.svg\" alt=\"Total Downloads\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Flarastan\u002Flarastan\">\u003Cimg src=\"https:\u002F\u002Fposer.pugx.org\u002Flarastan\u002Flarastan\u002Fv\u002Fstable.svg\" alt=\"Latest Version\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flarastan\u002Flarastan\u002Fblob\u002Fmaster\u002FLICENSE.md\">\u003Cimg src=\"https:\u002F\u002Fposer.pugx.org\u002Flarastan\u002Flarastan\u002Flicense.svg\" alt=\"License\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n------\n\n## ⚗️ About Larastan\n\nLarastan was created by [Can Vural](https:\u002F\u002Fgithub.com\u002Fcanvural) and [Nuno Maduro](https:\u002F\u002Fgithub.com\u002Fnunomaduro), got artwork designed by [@Caneco](http:\u002F\u002Fgithub.com\u002Fcaneco), is maintained by [Can Vural](https:\u002F\u002Fgithub.com\u002Fcanvural), [Nuno Maduro](https:\u002F\u002Fgithub.com\u002Fnunomaduro) and [Viktor Szépe](https:\u002F\u002Fgithub.com\u002Fszepeviktor), and is a [PHPStan](https:\u002F\u002Fphpstan.org\u002F) extension for Laravel. Larastan focuses on **finding errors in your code**. It catches whole classes of bugs even **before you write tests** for the code.\n\n- Adds static typing to Laravel to improve developer productivity and **code quality**\n- Supports most of [Laravel](https:\u002F\u002Flaravel.com)'s **beautiful magic**\n- Discovers bugs in your code\n\n> While by definition, \"static analysis\" doesn't load any of your application's code. Larastan boots your application's container, so it can resolve types that are only possible to compute at runtime. That's why we use the term \"code analysis\" instead of \"static analysis\".\n\n### Supported Laravel versions\n| Laravel Version    | Larastan Version |\n|--------------------|------------------|\n| \u003C 9                | 1.x              |\n| \\> 9.0 && >= 11.16 | 2.x              |\n| 11.16+             | 3.0+             |\n\n## Sponsors\n\u003Ca href=\"https:\u002F\u002Fblackfire.io\u002Fdocs\u002Fintroduction?utm_source=larastan&utm_medium=github_readme&utm_campaign=logo\">\u003Cimg src=\"assets\u002Fblackfire-logo.png\" alt=\"Blackfire.io\" width=\"254\" height=\"64\">\u003C\u002Fa>\n\n## ✨ Getting Started In 3 Steps\n\n> **Requires:**\n- **[PHP 8.2+](https:\u002F\u002Fphp.net\u002Freleases\u002F)**\n- **[Laravel 11.15+](https:\u002F\u002Fgithub.com\u002Flaravel\u002Flaravel)**\n\n**1**: First, you may use [Composer](https:\u002F\u002Fgetcomposer.org) to install Larastan as a development dependency into your Laravel project:\n\n```bash\ncomposer require --dev \"larastan\u002Flarastan:^3.0\"\n```\n\n> Using Larastan for analysing Laravel packages? You may need to install `orchestra\u002Ftestbench`.\n\n**2**: Then, create a `phpstan.neon` or `phpstan.neon.dist` file in the root of your application. It might look like this:\n\n```\nincludes:\n    - vendor\u002Flarastan\u002Flarastan\u002Fextension.neon\n    - vendor\u002Fnesbot\u002Fcarbon\u002Fextension.neon\n\nparameters:\n\n    paths:\n        - app\u002F\n\n    # Level 10 is the highest level\n    level: 5\n\n#    ignoreErrors:\n#        - '#PHPDoc tag @var#'\n#\n#    excludePaths:\n#        - .\u002F*\u002F*\u002FFileToBeExcluded.php\n```\n\nFor all available options, please take a look at the PHPStan documentation: **https:\u002F\u002Fphpstan.org\u002Fconfig-reference**\n\n**3**: Finally, you may start analyzing your code using the phpstan console command:\n\n```bash\n.\u002Fvendor\u002Fbin\u002Fphpstan analyse\n```\n\nIf you are getting the error `Allowed memory size exhausted`, then you can use the `--memory-limit` option fix the problem:\n\n```bash\n.\u002Fvendor\u002Fbin\u002Fphpstan analyse --memory-limit=2G\n```\n\n## Ignoring errors\n\nIgnoring a specific error can be done either with a php comment or in the configuration file: \n\n```php\n\u002F\u002F @phpstan-ignore-next-line\n$test->badMethod();\n\n$test->badMethod(); \u002F\u002F @phpstan-ignore-line\n```\n\nWhen ignoring errors in PHPStan's configuration file, they are ignored by writing a regex based on error messages:\n\n```yaml\nparameters:\n    ignoreErrors:\n        - '#Call to an undefined method .*badMethod\\(\\)#'\n```\n\n### Baseline file\n\nIn older codebases it might be hard to spend the time fixing all the code to pass a high PHPStan Level. \n\nTo get around this a baseline file can be generated. The baseline file will create a configuration file with all of the current errors, so new code can be written following a higher standard than the old code. ([PHPStan Docs](https:\u002F\u002Fphpstan.org\u002Fuser-guide\u002Fbaseline))\n\n```bash\n.\u002Fvendor\u002Fbin\u002Fphpstan analyse --generate-baseline\n```\n\n## Rules\n\nA list of configurable rules specific to Laravel can be found [here](docs\u002Frules.md).\n\n\n## Features\n\nA list of Larastan features can be found [here](docs\u002Ffeatures.md).\n\n## Custom PHPDoc types\n\nA list of PHPDoc types specific to Larastan can be found [here](docs\u002Fcustom-types.md).\n\n## Custom PHPStan config parameters\n\nA list of custom config parameters that you can use in your PHPStan config file can be found [here](docs\u002Fcustom-config-parameters.md).\n\n## Errors To Ignore\n\nSome parts of Laravel are currently too magical for Larastan\u002FPHPStan to understand.\nWe listed common [errors to ignore](docs\u002Ferrors-to-ignore.md), add them as needed\n\n## 👊🏻 Contributing\n\nThank you for considering contributing to Larastan. All the contribution guidelines are mentioned [here](CONTRIBUTING.md).\n\n## 📖 License\n\nLarastan is an open-sourced software licensed under the [MIT license](LICENSE.md).\n","Larastan 是一个专为 Laravel 框架设计的代码分析工具，旨在提高开发效率和代码质量。它基于 PHPStan 构建，能够识别代码中的潜在错误，即使在编写测试之前也能发现多种类型的 Bug。Larastan 支持 Laravel 的大部分特性，并通过静态类型检查来增强代码的健壮性。特别地，Larastan 会启动应用容器以解析运行时才能确定的类型信息，因此比传统的静态分析更强大。适用于需要确保高质量代码输出的所有 Laravel 项目，尤其是那些希望减少生产环境问题、加快开发速度的企业级应用。",2,"2026-06-11 03:17:13","top_language"]