Skip to content
PHPStan-compatible stub declarations for WPForms Lite — enables full static analysis for WordPress plugins that build on...

2024 · Creator & Maintainer

PHPStan WPForms Lite Stubs

PHPStan-compatible stub declarations for WPForms Lite — enables full static analysis for WordPress plugins that build on or extend WPForms.

The challenge

WPForms Lite is one of the most extended form plugins but its stub coverage in the community is partial. Plugins building on it accept a lower static-analysis bar than the rest of their codebase.

The result

A complete stub package for WPForms Lite enabling consistent PHPStan analysis across plugins that integrate with or extend WPForms.

Year
2024
Role
Creator & Maintainer
Stack
4 teches
Status
Published

Overview

WPForms Lite is one of the most installed WordPress form plugins. This package provides PHPStan stubs for the complete WPForms Lite public API so you can write type-safe integrations.

Usage

BASH
composer require --dev mralaminahamed/phpstan-wpforms-lite-stubs

What's Included

  • All WPForms_*, WPForms\* class and interface stubs
  • Action and filter signatures
  • Helper function declarations

Tech

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