smile/magento2-smilelab-phpstan
Composer 安装命令:
composer require smile/magento2-smilelab-phpstan
包简介
PHPStan extension for Magento projects.
README 文档
README
Description
This extension is meant to be used on Magento projects and modules.
The src folder is copied from https://github.com/magento/magento2/tree/2.4.5/dev/tests/static/framework/Magento/PhpStan.
Installation
To use this extension, require it in composer:
composer require --dev smile/magento2-smilelab-phpstan
Configuration
Create a configuration file named phpstan.neon.dist at the root of your project.
Example for a Magento project:
parameters: level: 6 checkMissingIterableValueType: false paths: - app/code
Exemple for a community module:
parameters: level: 6 checkMissingIterableValueType: false phpVersion: {{min_php_version}} paths: - . excludePaths: - 'vendor/*'
Where {{min_php_version}} is the minimum compatible version of PHP required by your module. For example, if the min version is PHP 7.4:
phpVersion: 70400
If you also install phpstan/extension-installer then you're all set!
Otherwise, add the following configuration to this file:
includes: - vendor/smile/magento2-smilelab-phpstan/extension.neon
Usage
You can run the phpstan analysis with this command:
vendor/bin/phpstan analyse
smile/magento2-smilelab-phpstan 适用场景与选型建议
smile/magento2-smilelab-phpstan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33.4k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 08 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 smile/magento2-smilelab-phpstan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 smile/magento2-smilelab-phpstan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 33.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-08-30