定制 mralaminahamed/wpforms-lite-stubs 二次开发

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

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

mralaminahamed/wpforms-lite-stubs

Composer 安装命令:

composer require --dev mralaminahamed/wpforms-lite-stubs

包简介

WPForms Lite function and class declaration stubs for static analysis.

README 文档

README

Latest Version Downloads License PHP Version Tweet

PHP stub declarations for the WPForms Lite 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 WPForms Lite versions

📋 Requirements

  • PHP >= 7.4
  • Composer for dependency management

📦 Installation

Via Composer (Recommended)

# Install as a development dependency
composer require --dev mralaminahamed/wpforms-lite-stubs

# Or specify a version
composer require --dev mralaminahamed/wpforms-lite-stubs:^1.0

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.

🔍 Quick Usage Example

<?php
// Your code will now have full IDE support
$wpforms = wpforms();

// Constants are properly defined
if (WPFORMS_VERSION) {
    // Your implementation
}

// Classes and interfaces are available
class MyForm extends WPForms\WPForms {
    // Your implementation
}

For advanced usage examples, see the Usage Guide.

📁 Package Structure

phpstan-wpforms-lite-stubs/
├── configs/                            # Configuration files for stub generation
├── docs/                               # Detailed documentation
│   ├── usage.md                        # Usage guide
│   └── contributing.md                 # Contribution guidelines
├── wpforms-constants-stubs.stub        # Constants stub file
├── wpforms-stubs.stub                  # Main stubs file with classes and functions
├── source/                             # Source for generating stubs
└── tests/                              # Test files
    ├── bootstrap.php                   # Test bootstrap
    ├── ConstantsTest.php               # Constants tests
    └── WPFormsTest.php                 # WPForms tests

🛠 Development

For information on building stubs, running tests, and contributing to the project, please see our Contributing Guide.

📚 Documentation

For more detailed information, check out our documentation:

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

💬 Support

For bug reports and feature requests, please use the GitHub Issues.

For questions and discussions, please use the GitHub Discussions.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固