mralaminahamed/ninja-forms-stubs

Ninja Forms function and class declaration stubs for static analysis.

Installs: 1 253

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

pkg:composer/mralaminahamed/ninja-forms-stubs

v3.10.0 2025-04-13 23:16 UTC

README

Packagist stats Packagist Tweet

This package provides stub declarations for the Ninja 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/ninja-forms-stubs

Alternatively you may download ninja-forms-stubs.stub directly.

Usage in PHPStan

Include stubs in PHPStan configuration file.

parameters:
    bootstrapFiles:
        - vendor/mralaminahamed/ninja-forms-stubs/ninja-forms-constants-stubs.stub
        - vendor/mralaminahamed/ninja-forms-stubs/ninja-forms-stubs.stub