mralaminahamed/fluent-forms-stubs

Fluent Forms function and class declaration stubs for static analysis.

v5.1.19 2024-06-15 11:57 UTC

README

Fluent Forms Stubs

Packagist stats Packagist Tweet Build Status

This package provides stub declarations for the Fluent Forms 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/fluent-forms-stubs

Alternatively you may download fluent-forms-stubs.php directly.

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
    bootstrapFiles:
        - vendor/mralaminahamed/fluent-forms-stubs/fluent-forms-constants-stubs.php
        - vendor/mralaminahamed/fluent-forms-stubs/fluent-forms-stubs.php