phpstan-wpforms-lite-stubs

WPForms Lite function and class declaration stubs for static analysis.

MIT License

Downloads
1.2K
Stars
0

WPForms Lite Stubs

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
Package Rankings
Top 45.84% on Packagist.org
Badges
Extracted from project README
Packagist stats Packagist Tweet Build Status
Related Projects