mralaminahamed/easy-digital-downloads-pro-stubs

Easy Digital Downloads Pro (+ Software Licensing + Recurring Payments) function and class declaration stubs for static analysis.

Maintainers

Package info

github.com/mralaminahamed/phpstan-easy-digital-downloads-pro-stubs

pkg:composer/mralaminahamed/easy-digital-downloads-pro-stubs

Statistics

Installs: 5

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

dev-main 2026-06-16 07:52 UTC

This package is auto-updated.

Last update: 2026-06-16 07:54:44 UTC


README

Latest Version Downloads License PHP Version

PHP stub declarations for Easy Digital Downloads Pro (3.6.7) including:

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

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

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.