Skip to content

2023 · Creator & Maintainer

Freemius SDK PHP Stubs

PHPStan-compatible stub declarations for the Freemius SDK — enables full static analysis for WordPress plugins that monetise via Freemius.

Role

Creator & Maintainer

Overview

Freemius is the most widely-used SDK for selling and licensing WordPress plugins. This package provides PHPStan stub declarations for all public Freemius classes, methods, and functions — enabling type-safe development against the SDK without requiring the full Freemius codebase as a dev dependency.

Usage

composer require --dev mralaminahamed/freemius-stubs

Add to phpstan.neon:

parameters: stubFiles: - vendor/mralaminahamed/freemius-stubs/stubs

What's Included

  • Freemius, FS_Plugin, FS_User, FS_Site and all related class stubs
  • License management and pricing plan API stubs
  • Hooks and filter signatures

Adoption

Over 1,500 Composer installs across WordPress plugin development teams.

Tech

PHP, PHPStan stubs, Freemius SDK.

One email a month. No noise.

What I shipped, what I read, occasional deep dive. Unsubscribe anytime.

Interested in working together?

I'm open to freelance engagements and consulting. Let's talk.