calebdw/larastan
Composer 安装命令:
composer require --dev calebdw/larastan
包简介
Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel
README 文档
README
⚗️ About This Fork
Hello! 👋
This is my fork of larastan/larastan, which includes additional features and improvements that have been proposed but are not yet available in the upstream package. This fork is intended to provide the community with immediate access to these enhancements while maintaining compatibility with the upstream package.
Tip
For Laravel Livewire support, check out larastan-livewire!
🔄 Changes and Upstream PRs
This fork includes the following changes and enhancements:
- fix: conditionable calls on relations
- fix: mark macro methods as static only if the closure is static
- feat: add support for Collection, Builder, and Arr pluck
- fix: self::query() for final models
- feat: add optional noModelForwardingToBuilder and noModelStaticForwardingToBuilder
- fix: factory {has,for}* methods should return static
- fix: property type for uuid and ulid primary keys
- fix: collection template types being overwritten
- fix: builder stubs and builder/model forwarding
- fix: handle collection intersection types
- feat: support dynamic relation closures
- feat: add support for config array shapes
- feat: support multiple database connections
- feat: support wildcards in migration/schema paths
- fix: default date casting
- fix: make TGet covariant on Attribute stub
✨ Getting Started
To use this fork, you may use Composer to install it as a development dependency into your Laravel project:
composer require --dev "calebdw/larastan:^3.0"
Or if you already have the upstream package installed, you can point your composer.json to this fork:
- "larastan/larastan": "^3.0" + "calebdw/larastan": "^3.0"
If you have the PHPStan extension installer installed then nothing more is needed, otherwise you will need to manually include the extension in the phpstan.neon(.dist) configuration file:
includes: - ./vendor/calebdw/larastan/extension.neon
For more information on how to configure and use Larastan, please refer to the official documentation.
👊🏻 Contributing
Thank you for considering contributing to Larastan. All the contribution guidelines are mentioned here.
📄 License
This fork is open-sourced software licensed under the MIT license.
calebdw/larastan 适用场景与选型建议
calebdw/larastan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 122.91k 次下载、GitHub Stars 达 16, 最近一次更新时间为 2024 年 07 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「php」 「laravel」 「static analysis」 「code analysis」 「PHPStan」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 calebdw/larastan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 calebdw/larastan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 calebdw/larastan 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple ASCII output of array data
Alfabank REST API integration
Package for view storage in laravel
User Approval Laravel Package
PHPUnit Pretty Result Printer
统计信息
- 总下载量: 122.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 25
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-31

