mralaminahamed / easy-digital-downloads-pro-stubs
Easy Digital Downloads Pro (+ Software Licensing + Recurring Payments) function and class declaration stubs for static analysis.
Package info
github.com/mralaminahamed/phpstan-easy-digital-downloads-pro-stubs
pkg:composer/mralaminahamed/easy-digital-downloads-pro-stubs
Requires
- php: >=7.4
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php-stubs/generator: ^0.8.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^7.5 || ^8.5 || ^9.5
- squizlabs/php_codesniffer: ^3.7
Suggests
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
This package is auto-updated.
Last update: 2026-06-16 07:54:44 UTC
README
PHP stub declarations for Easy Digital Downloads Pro (3.6.7) including:
- EDD Pro — core EDD Pro classes and functions
- EDD Software Licensing (3.9.2) — license key management
- EDD Recurring Payments (2.13.7) — subscription billing
Generated using php-stubs/generator from the actual plugin source.
Note: This package requires a valid EDD Pro license for use with the actual plugins. The stubs are for static analysis only and do not include any executable EDD Pro code.
Features
- Complete function, class, and interface declarations for EDD Pro + addons
- Constant definitions for proper static analysis
- Separate stub files per addon for granular control
- PHPStan integration
Requirements
- PHP >= 7.4
- Composer
- mralaminahamed/easy-digital-downloads-stubs (installed automatically)
Installation
composer require --dev mralaminahamed/easy-digital-downloads-pro-stubs
Configuration
PHPStan (phpstan.neon)
parameters: scanFiles: # EDD free (required by this package) - vendor/mralaminahamed/easy-digital-downloads-stubs/easy-digital-downloads-stubs.php - vendor/mralaminahamed/easy-digital-downloads-stubs/easy-digital-downloads-constants-stubs.php # EDD Pro - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/easy-digital-downloads-pro-stubs.php - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/easy-digital-downloads-pro-constants-stubs.php # Software Licensing (include only if you use this addon) - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/edd-software-licensing-stubs.php - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/edd-software-licensing-constants-stubs.php # Recurring Payments (include only if you use this addon) - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/edd-recurring-stubs.php - vendor/mralaminahamed/easy-digital-downloads-pro-stubs/edd-recurring-constants-stubs.php
Stub Files
| File | Contents |
|---|---|
easy-digital-downloads-pro-stubs.php |
EDD Pro classes, functions, interfaces, traits |
easy-digital-downloads-pro-constants-stubs.php |
EDD Pro constants |
edd-software-licensing-stubs.php |
Software Licensing classes and functions |
edd-software-licensing-constants-stubs.php |
Software Licensing constants |
edd-recurring-stubs.php |
Recurring Payments classes and functions |
edd-recurring-constants-stubs.php |
Recurring Payments constants |
Regenerating Stubs
Requires access to the EDD Pro plugin files (commercial license required):
# Copy plugin sources (from WP install or downloaded zips) cp -r /path/to/wp/plugins/easy-digital-downloads-pro source/ cp -r /path/to/wp/plugins/edd-software-licensing source/ cp -r /path/to/wp/plugins/edd-recurring source/ # Install dependencies and generate composer install composer generate
Related Packages
- phpstan-easy-digital-downloads-stubs — EDD free stubs (included as dependency)
License
MIT. See LICENSE.
The EDD Pro plugin itself is proprietary software by Sandhills Development. These stubs are independently generated type declarations for static analysis purposes only.