arts / edd-software-licensing-stubs
Comprehensive PHPStan stubs for EDD Software Licensing - auto-generated, self-contained, plug & play
Package info
github.com/artkrsk/edd-software-licensing-stubs
pkg:composer/arts/edd-software-licensing-stubs
Fund package maintenance!
Requires
- php: >=8.0
- arts/easy-digital-downloads-stubs: ^3.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:11 UTC
README
Comprehensive PHPStan stubs for EDD Software Licensing — the commercial add-on for Easy Digital Downloads that turns digital products into licensable software.
Get full IDE autocomplete, IntelliSense, and type safety when developing license-aware WordPress plugins, themes, and update servers.
Features
- Full IDE autocomplete for all EDD SL classes and functions
- Type safety and static analysis with PHPStan
- Catch errors before runtime when building licensing flows and update servers
- Pulls EDD core stubs as a transitive dependency (
arts/easy-digital-downloads-stubs) so EDD types referenced by SL resolve automatically
Requirements
- PHP 8.0 or higher
- PHPStan for static analysis
- Automatically pulls in EDD core, WordPress, and WP-CLI stubs as dependencies
Installation
composer require --dev arts/edd-software-licensing-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 - vendor/arts/edd-software-licensing-stubs/edd-software-licensing-stubs.php
Regenerating Stubs
EDD Software Licensing is a commercial add-on distributed by Sandhills Development; it is not available on WordPress.org. To generate stubs you need a local copy of the plugin source.
- Copy
.env.exampleto.env - Set
EDD_SL_PATHto your local EDD Software Licensing installation - Run:
composer generate
cp .env.example .env
# Edit .env with your path
composer generate
💖 Support
If you find this package useful, consider buying me a coffee:
Made with ❤️ by Artem Semkin