定制 sivlingworkz/phpstan-craftcms 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sivlingworkz/phpstan-craftcms

最新稳定版本:0.3.0

Composer 安装命令:

composer require sivlingworkz/phpstan-craftcms

包简介

Craft CMS extension for PHPStan

README 文档

README

Latest Version on Packagist Software License Total Downloads

NOTE: hard fork of https://github.com/studio-stomp/phpstan-craftcms

Extension for PHPStan for better support for Craft CMS. The following features are provided:

  • Configure autoload of Craft CMS for analysis
  • Stub to support different ElementQuery-classes

Install

Via Composer

$ composer require --dev sivlingworkz/phpstan-craftcms

Usage

Add phpstan-craftcms to the project phpstan.neon / phpstan.neon.dist:

includes:
    - vendor/sivlingworkz/phpstan-craftcms/extension.neon

Add the level and paths as well to the project phpstan.neon / phpstan.neon.dist:

parameters: 
    level: max # Or feel free to start at a lower level
    paths:
        - src # Common in plugins and other composer loaded packages
        - modules # Common in Craft CMS project
        - tests # Common in both

Feel free to check out the base configuration and expand on it with own configuration. For example:

includes:
    - vendor/sivlingworkz/phpstan-craftcms/extension.neon

parameters:
    ignoreErrors:
        - '#Call to an undefined method SoapClient::#'

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固