tomasvotruba/bladestan
最新稳定版本:0.11.3
Composer 安装命令:
composer require --dev tomasvotruba/bladestan
包简介
PHPStan rule for static analysis of Blade templates
README 文档
README
Bladestan
Static analysis for Blade templates in Laravel projects.
Install
composer require tomasvotruba/bladestan --dev
Configure
If you run PHPStan with its extension installer, Bladestan will just work, if not you need to include it in the phpstan.neon configuration file:
includes: - ./vendor/tomasvotruba/bladestan/config/extension.neon
Features
Custom Error Formatter
We provide custom PHPStan error formatter to better display the template errors:
- clickable template file path link to the error in blade template
------ ----------------------------------------------------------- Line app/Http/Controllers/PostCodexController.php ------ ----------------------------------------------------------- 20 Call to an undefined method App\Entity\Post::getContent(). rendered in: post_codex.blade.php:15 ------ -----------------------------------------------------------
How to use custom error formatter?
vendor/bin/phpstan analyze --error-format=blade
Credits
- Can Vural - this package is based on that, with upgrade for Laravel 10 and active maintenance
- All Contributors
统计信息
- 总下载量: 485.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 354
- 点击次数: 2
- 依赖项目数: 12
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-05