mralaminahamed / wpforms-lite-stubs
WPForms Lite function and class declaration stubs for static analysis.
Package info
github.com/mralaminahamed/phpstan-wpforms-lite-stubs
Language:Shell
pkg:composer/mralaminahamed/wpforms-lite-stubs
Requires
- php: >=7.4
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php-stubs/generator: ^0.8.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^7.5 || ^8.5 || ^9.5
- squizlabs/php_codesniffer: ^3.7
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v2.0.1.1
- v2.0.0.5
- v2.0.0.4
- v2.0.0.3
- v2.0.0.2
- v2.0.0.1
- v1.10.2.1
- v1.10.2
- v1.10.1.1
- v1.10.1
- v1.10.0.5
- v1.10.0.4
- v1.10.0.3
- v1.10.0.2
- v1.10.0.1
- v1.9.9.4
- v1.9.9.3
- v1.9.9.2
- v1.9.8.7
- v1.9.8.4
- v1.9.8.2
- v1.9.8.1
- v1.9.7.3
- v1.9.7.2
- v1.9.7.1
- v1.9.6.2
- v1.9.6.1
- v1.9.6
- v1.9.5.2
- v1.9.5.1
- v1.9.5
- v1.9.4.2
- v1.9.4.1
- v1.9.3.2
- v1.9.3.1
- v1.9.2.3
- v1.9.2.2
- v1.9.2.1
- v1.9.1.6
- v1.9.1.5
- v1.9.1.4
- v1.9.1.3
- v1.9.1.2
- v1.9.1.1
- v1.9.0.4
- v1.9.0.3
- v1.9.0.2
- v1.9.0.1
- v1.8.9.6
- v1.8.9.5
- v1.8.9.4
- v1.8.9.2
- v1.8.9.1
- v1.8.8.3
- v1.8.8.2
- v1.8.7.2
- v1.8.6.4
- v1.8.6.3
- v1.8.6.2
- v1.8.5.4
- v1.8.5.3
- v1.8.5.2
- v1.8.4.1
- v1.8.4
- v1.8.3.1
- v1.8.3
- v1.8.2.3
- v1.8.2.2
- v1.8.2.1
- v1.8.1.3
- v1.8.1.2
- v1.8.1.1
- v1.8.0.2
- v1.8.0.1
- v1.7.9.1
- v1.7.9
- v1.6.9
- v1.5.9.5
- v1.5.7
- v1.4.9
- v1.3.9.1
- v1.3.8
- v1.2.9
- v1.1.8.4
- v1.1.8
- dev-create-pull-request/patch
This package is auto-updated.
Last update: 2026-08-27 13:49:40 UTC
README
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:
- Usage Guide
- Contributing Guide
- WPForms Documentation
- PHPStan Documentation
- PHP Stubs Generator Documentation
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- WPForms Team for the WPForms Lite plugin
- php-stubs/generator for the stub generation tools
- All contributors to this project
💬 Support
For bug reports and feature requests, please use the GitHub Issues.
For questions and discussions, please use the GitHub Discussions.