mralaminahamed / wpforms-lite-stubs
WPForms Lite function and class declaration stubs for static analysis.
Installs: 1 245
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php: >=7.1
- php-stubs/generator: ^0.8.0
- phpstan/phpstan: ^1.10
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
- dev-main
- 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: 2024-12-13 05:47:07 UTC
README
This package provides stub declarations for the WPForms Lite plugin functions, classes and interfaces. These stubs can help plugin and theme developers leverage IDE completion and static analysis tools like PHPStan.
The stubs are generated directly from the source using php-stubs/generator.
Requirements
- PHP >=7.1
Installation
Require this package as a development dependency with Composer.
composer require --dev mralaminahamed/wpforms-lite-stubs
Alternatively you may download wpforms-stubs.php
directly.
Usage in PHPStan
Include stubs in PHPStan configuration file.
parameters: bootstrapFiles: - vendor/mralaminahamed/wpforms-lite-stubs/wpforms-constants-stubs.php - vendor/mralaminahamed/wpforms-lite-stubs/wpforms-stubs.php