mralaminahamed/phpstan-surecart-stubs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mralaminahamed/phpstan-surecart-stubs

Composer 安装命令:

composer require --dev mralaminahamed/phpstan-surecart-stubs

包简介

SureCart function and class declaration stubs for static analysis.

README 文档

README

Latest Version Downloads License PHP Version

PHP stub declarations for the SureCart plugin to enhance IDE completion and static analysis capabilities. Generated using php-stubs/generator directly from the source code.

Features

  • Complete function, class, and interface declarations
  • Constant definitions for proper static analysis
  • IDE autocompletion support
  • PHPStan integration
  • Regular updates with latest SureCart plugin versions

Requirements

  • PHP >= 7.4
  • Composer for dependency management

Installation

Via Composer (Recommended)

composer require --dev mralaminahamed/phpstan-surecart-stubs

Manual Installation

Download the stub files directly:

Basic Configuration

To use these stubs with PHPStan or your IDE, see our Usage Guide for detailed instructions.

Package Structure

phpstan-surecart-stubs/
├── bin/                               # Scripts for generating and releasing stubs
│   ├── generate.sh                    # Stub generation script
│   └── release-latest-versions.sh    # Release automation script
├── configs/                           # Configuration files for stub generation
│   ├── bootstrap.php                  # PHPStan bootstrap with WP constants
│   └── finder.php                     # File finder configuration
├── surecart-constants-stubs.php       # Constants stub file
├── surecart-stubs.php                 # Main stubs file with classes and functions
├── phpstan.neon                       # PHPStan configuration
├── source/                            # Source for generating stubs
└── tests/                             # Test files

Development

Generating Stubs

composer generate

Running Tests

composer test

Releasing a New Version

composer release

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固