https://github.com/mralaminahamed/phpstan-fluent-forms-stubs
Fluent Forms function and class declaration stubs for static analysis.
https://github.com/mralaminahamed/phpstan-fluent-forms-stubs
Last synced: about 2 months ago
JSON representation
Fluent Forms function and class declaration stubs for static analysis.
- Host: GitHub
- URL: https://github.com/mralaminahamed/phpstan-fluent-forms-stubs
- Owner: mralaminahamed
- License: mit
- Created: 2024-06-01T12:37:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-12T15:29:01.000Z (2 months ago)
- Last Synced: 2025-04-12T15:33:18.113Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 402 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fluent Forms Stubs
[](https://packagist.org/packages/mralaminahamed/fluent-forms-stubs/stats)
[](https://packagist.org/packages/mralaminahamed/fluent-forms-stubs)
[](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-fluent-forms-stubs&url=I%20use%20mralaminahamed%2Fphpstan-fluent-forms-stubs%20for%20IDE%20completion%20and%20static%20analysis)
[](https://app.travis-ci.com/mralaminahamed/phpstan-fluent-forms-stubs)This package provides stub declarations for the [Fluent Forms plugin](https://wordpress.org/plugins/fluentform/)
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/fluentform/)
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/fluent-forms-stubs
```Alternatively you may download `fluent-forms-stubs.stub` directly.
## Usage in PHPStan
Include stubs in PHPStan configuration file.
```yaml
parameters:
bootstrapFiles:
- vendor/mralaminahamed/fluent-forms-stubs/fluent-forms-constants-stubs.stub
- vendor/mralaminahamed/fluent-forms-stubs/fluent-forms-stubs.stub
```