承接 headercat/phpstan-extension-ide-helper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

headercat/phpstan-extension-ide-helper

最新稳定版本:2.1.33

Composer 安装命令:

composer require headercat/phpstan-extension-ide-helper

包简介

PHPStan extension IDE helper, provides dummy PHPStan namespace classes and functions.

README 文档

README

PHPStan extension IDE helper, provides dummy PHPStan namespace classes and functions.

PHPStan is distributed via PHAR file rather than pure PHP files. While this is perfectly adequate for using PHPStan, it makes writing PHPStan's extensions a pain. Most IDEs and autocompletion tools cannot reference the code inside PHAR packages.

Installation

composer require --dev headercat/phpstan-extension-ide-helper

Or you can manually add into composer.json.

{
  "require-dev": {
    "phpstan/phpstan": "^2.0.0-or-any-version-you-want",
    "headercat/phpstan-extension-ide-helper": "*"
  }
}

Contributing

The job creating a new release will be automatically executed every each 30 minutes. But if PHPStan release a new version before next 30 minutes iteration occurs, you can write a comment on Issue #1 to execute the job manually.

How it works?

  1. Clone phpstan/phpstan-src repository to /phpstan.
  2. Scan all PHP files from /phpstan.
  3. Add return; after namespace declaration to all scanned files from step 2.
  4. Write them to a new directory /main.
  5. Find composer dependencies that starts with phpstan/ from /phpstan/composer.json.
  6. Add them to /main/composer.json.
  7. Done!

License

Licensed under the MIT license.

统计信息

  • 总下载量: 12.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-13