arts / easy-digital-downloads-stubs
Comprehensive PHPStan stubs for Easy Digital Downloads (core) - auto-generated, self-contained, plug & play
Package info
github.com/artkrsk/easy-digital-downloads-stubs
pkg:composer/arts/easy-digital-downloads-stubs
Fund package maintenance!
v3.7.0
2026-08-14 05:48 UTC
Requires
- php: >=8.0
- php-stubs/wordpress-stubs: ^6.9
- php-stubs/wp-cli-stubs: ^2.12
Requires (Dev)
- captainhook/captainhook: ^5.27
- ergebnis/composer-normalize: ^2.48
- php-stubs/generator: ^0.8
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.0
- vlucas/phpdotenv: ^5.6
- wp-coding-standards/wpcs: ^3.0
This package is auto-updated.
Last update: 2026-08-14 07:08:07 UTC
README
Comprehensive PHPStan stubs for Easy Digital Downloads core.
Get full IDE autocomplete, IntelliSense, and type safety when developing EDD-powered WordPress plugins, themes, and extensions.
Features
- Full IDE autocomplete for all EDD core classes and functions
- Type safety and static analysis with PHPStan
- Catch errors before runtime when building EDD integrations and order pipelines
- Self-contained — includes WordPress core stubs as a transitive dependency
- Generated directly from upstream EDD source on WordPress.org
Requirements
- PHP 8.0 or higher
- PHPStan for static analysis
- Automatically pulls in WordPress and WP-CLI stubs as dependencies
Installation
composer require --dev arts/easy-digital-downloads-stubs
Usage with PHPStan
Add to your phpstan.neon:
parameters: bootstrapFiles: - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php - vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php - vendor/arts/easy-digital-downloads-stubs/easy-digital-downloads-stubs.php
Regenerating Stubs
For contributors or to generate stubs from a specific EDD version:
- Copy
.env.exampleto.env - Set
EDD_PATHto your Easy Digital Downloads installation - Run:
composer generate
cp .env.example .env
# Edit .env with your paths
composer generate
💖 Support
If you find this package useful, consider buying me a coffee:
Made with ❤️ by Artem Semkin