arts/easy-digital-downloads-stubs

Comprehensive PHPStan stubs for Easy Digital Downloads (core) - auto-generated, self-contained, plug & play

Maintainers

Package info

github.com/artkrsk/easy-digital-downloads-stubs

pkg:composer/arts/easy-digital-downloads-stubs

Transparency log

Fund package maintenance!

Buy Me A Coffee

Statistics

Installs: 14

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v3.7.0 2026-08-14 05:48 UTC

This package is auto-updated.

Last update: 2026-08-14 07:08:07 UTC


README

Test Latest Release PHP Version Buy Me A Coffee

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:

  1. Copy .env.example to .env
  2. Set EDD_PATH to your Easy Digital Downloads installation
  3. 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:

Buy Me A Coffee

Made with ❤️ by Artem Semkin