Skip to content
PHPStan-compatible stub declarations for WPMU Dev's Forminator plugin — enables type-safe development for plugins that e...

2024 · Creator & Maintainer

PHPStan Forminator Stubs

PHPStan-compatible stub declarations for WPMU Dev's Forminator plugin — enables type-safe development for plugins that extend or integrate with Forminator.

The challenge

WPMU Dev's Forminator has a public hook and class surface but no PHPStan stubs are published, so extensions can't lint cleanly.

The result

A stub package covering Forminator's plugin API for type-safe extension development under PHPStan level 8.

Year
2024
Role
Creator & Maintainer
Stack
4 teches
Status
Published

Overview

Forminator by WPMU Dev is a widely-used drag-and-drop form builder with no public PHPStan stubs. This package fills that gap with complete stub declarations for static analysis.

Usage

BASH
composer require --dev mralaminahamed/phpstan-forminator-stubs

What's Included

  • All Forminator_* class stubs
  • Action and filter hook signatures
  • REST API endpoint declarations

Tech

PHP, PHPStan stubs, Forminator 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.