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_Siteand 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.