PHPackages                             mralaminahamed/easycommerce-stubs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mralaminahamed/easycommerce-stubs

ActiveLibrary

mralaminahamed/easycommerce-stubs
=================================

EasyCommerce function and class declaration stubs for static analysis.

v1.47.1(today)01↑2900%MITShellPHP &gt;=7.4CI failing

Since Jul 31Pushed todayCompare

[ Source](https://github.com/mralaminahamed/phpstan-easycommerce-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/easycommerce-stubs)[ Docs](https://github.com/mralaminahamed/phpstan-easycommerce-stubs)[ RSS](/packages/mralaminahamed-easycommerce-stubs/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

EasyCommerce Stubs
==================

[](#easycommerce-stubs)

[![Latest Version](https://camo.githubusercontent.com/a76eacfbf282eeff8fcf23cf16abe986c08655aedba996f197ed3aff0a6bd53b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f65617379636f6d6d657263652d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/easycommerce-stubs)[![Downloads](https://camo.githubusercontent.com/de4b7a1aab4d08ba9c5610ab26bae95ef4518b1c3407c99283ef61c5ecf51627/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f65617379636f6d6d657263652d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/easycommerce-stubs/stats)[![License](https://camo.githubusercontent.com/7c27f3eb4dbc0a8f5a27b35a564ba104688bd387d847eac6556688bc1768de36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f65617379636f6d6d657263652d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/174d6d24870649ca61e14d2b05f391942a4f0c25f10a995801befce0b3eae365/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f65617379636f6d6d657263652d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)

PHP stub declarations for the [EasyCommerce](https://wordpress.org/plugins/easycommerce/) plugin, for IDE completion and static analysis. Generated with [php-stubs/generator](https://github.com/php-stubs/generator) directly from the plugin source.

Generated from **EasyCommerce 1.47** — 115 classes · 10 traits · 128 functions · 7 constants.

🚀 Features
----------

[](#-features)

- Complete class, interface, trait and function declarations
- Constants in a separate file, so PHPStan can scan them rather than analyse them
- IDE autocompletion for a plugin that is not a Composer dependency
- Reproducible: the source is downloaded from WordPress.org, never vendored

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 7.4
- Composer

📦 Installation
--------------

[](#-installation)

```
composer require --dev mralaminahamed/easycommerce-stubs
```

Or download the stub files directly:

- [easycommerce-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-easycommerce-stubs/main/easycommerce-stubs.stub)
- [easycommerce-constants-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-easycommerce-stubs/main/easycommerce-constants-stubs.stub)

🔧 Configuration
---------------

[](#-configuration)

Add both files to PHPStan. `scanFiles` rather than `bootstrapFiles`: the stubs declare symbols for analysis, they are not meant to be executed.

```
parameters:
    scanFiles:
        - vendor/mralaminahamed/easycommerce-stubs/easycommerce-stubs.stub
        - vendor/mralaminahamed/easycommerce-stubs/easycommerce-constants-stubs.stub
```

For IDE completion, point your IDE at the same files — in PhpStorm, mark them as an *Include Path* rather than a source root, so the empty method bodies never shadow the real plugin.

🔍 Quick usage example
---------------------

[](#-quick-usage-example)

```
