Skip to content
PHPStan-compatible stub declarations for Fluent Forms — enables full static analysis for WordPress plugins that integrat...

2023 · Creator & Maintainer

PHPStan Fluent Forms Stubs

PHPStan-compatible stub declarations for Fluent Forms — enables full static analysis for WordPress plugins that integrate with Fluent Forms.

The challenge

Fluent Forms exposes a rich PHP API for integrations but ships no PHPStan stubs, so plugins integrating with it run static analysis blind.

The result

A maintained stub package enabling type-safe Fluent Forms integration code — autocompletion, level 8 analysis, and refactor confidence for downstream plugins.

Year
2023
Role
Creator & Maintainer
Stack
4 teches
Status
Published

Overview

Fluent Forms is one of the most popular WordPress form builders, but it ships no PHPStan stubs. This package provides comprehensive stub declarations for all public Fluent Forms classes, methods, actions, and filters.

Usage

BASH
composer require --dev mralaminahamed/phpstan-fluent-forms-stubs

Add to phpstan.neon:

YAML
parameters:
    stubFiles:
        - vendor/mralaminahamed/phpstan-fluent-forms-stubs/stubs

What's Included

  • All fluentform, FF_Form, FF_Field and related class stubs
  • Hook signatures for all Fluent Forms actions and filters
  • Helper function declarations

Tech

PHP, PHPStan stubs, Fluent Forms API.

Share
𝕏 in

Related work

Building something similar?

Let's talk about your project.

Open to freelance engagements and consulting on Laravel, WordPress, and AI-powered systems.