arts / edd-all-access-stubs
PHPStan / IDE stubs for EDD All Access - auto-generated from source, self-contained, consumed via bootstrapFiles.
Requires
- php: >=8.0
- arts/easy-digital-downloads-stubs: ^3.0
- arts/edd-recurring-stubs: ^2.13
- arts/edd-software-licensing-stubs: ^3.8
- php-stubs/wordpress-stubs: ^6.9
- php-stubs/wp-cli-stubs: ^2.12
Requires (Dev)
- php-stubs/generator: ^0.8
- vlucas/phpdotenv: ^5.6
README
Auto-generated PHPStan / IDE stubs for EDD All Access.
Self-contained (safe to require_once), so PHPStan can resolve edd_all_access_get_all_access_downloads,
edd_all_access_product_download_url, and the rest of the EDD All Access type surface without the plugin installed.
Usage with PHPStan
parameters: bootstrapFiles: - vendor/arts/edd-all-access-stubs/edd-all-access-stubs.php
Regenerating
Point .env at an EDD All Access checkout (see .env.example), then:
composer install composer generate
The generator scans the plugin source with php-stubs/generator, strips stray code, neutralizes
abstract methods, injects the EDD_ALL_ACCESS_* constants, and appends empty stubs for any
referenced-but-missing parent type so the output loads cleanly on its own. EDD core, EDD Software
Licensing, and EDD Recurring symbols are resolved through their own stub packages (preloaded during
generation) rather than re-stubbed, so the output can be loaded alongside them without redeclaration.