https://github.com/mralaminahamed/phpstan-wpforms-lite-stubs
WPForms Lite function and class declaration stubs for static analysis.
https://github.com/mralaminahamed/phpstan-wpforms-lite-stubs
Last synced: about 1 month ago
JSON representation
WPForms Lite function and class declaration stubs for static analysis.
- Host: GitHub
- URL: https://github.com/mralaminahamed/phpstan-wpforms-lite-stubs
- Owner: mralaminahamed
- License: mit
- Created: 2024-05-14T15:44:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T23:11:10.000Z (about 2 months ago)
- Last Synced: 2025-04-14T00:33:09.998Z (about 2 months ago)
- Language: Shell
- Homepage:
- Size: 359 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WPForms Lite Stubs
[](https://packagist.org/packages/mralaminahamed/wpforms-lite-stubs/stats)
[](https://packagist.org/packages/mralaminahamed/wpforms-lite-stubs)
[](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-wpforms-stubs&url=I%20use%20mralaminahamed%2Fphpstan-wpforms-stubs%20for%20IDE%20completion%20and%20static%20analysis)
[](https://app.travis-ci.com/mralaminahamed/phpstan-wpforms-lite-stubs)This package provides stub declarations for the [WPForms Lite plugin](https://wordpress.org/plugins/wpforms-lite/)
functions, classes and interfaces.
These stubs can help plugin and theme developers leverage IDE completion
and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).The stubs are generated directly from the [source](https://wordpress.org/plugins/wpforms-lite/)
using [php-stubs/generator](https://github.com/php-stubs/generator).## Requirements
- PHP >=7.1
## Installation
Require this package as a development dependency with [Composer](https://getcomposer.org).
```bash
composer require --dev mralaminahamed/wpforms-lite-stubs
```Alternatively you may download `wpforms-stubs.stub` directly.
## Usage in PHPStan
Include stubs in PHPStan configuration file.
```yaml
parameters:
bootstrapFiles:
- vendor/mralaminahamed/wpforms-lite-stubs/wpforms-constants-stubs.stub
- vendor/mralaminahamed/wpforms-lite-stubs/wpforms-stubs.stub
```