PHPackages                             mralaminahamed/storeengine-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/storeengine-stubs

ActiveLibrary

mralaminahamed/storeengine-stubs
================================

StoreEngine function and class declaration stubs for static analysis.

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

Since Jul 31Pushed todayCompare

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

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

StoreEngine Stubs
=================

[](#storeengine-stubs)

[![Latest Version](https://camo.githubusercontent.com/775a6a5d8f44c2c43d643844b73300d04c2266702b87c86a9d1aa77fbc52a5c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f73746f7265656e67696e652d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/storeengine-stubs)[![Downloads](https://camo.githubusercontent.com/8a75edcd5816e4c323d2b643f9dabada27d0ba950e7749ceb7f84934725d6924/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f73746f7265656e67696e652d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/storeengine-stubs/stats)[![License](https://camo.githubusercontent.com/80adae04aaa719b020b4a976d24f9605d9c9568092fc20f106d580353ac7f2e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f73746f7265656e67696e652d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/4ae680a87fde87a0af95fa17e8349bde67330eacde41defe0aabea4f6cfccac3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f73746f7265656e67696e652d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)

PHP stub declarations for the [StoreEngine](https://wordpress.org/plugins/storeengine/) 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 **StoreEngine 2.2.0** — 708 classes · 9 interfaces · 27 traits · 173 functions · 1 constant.

🚀 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/storeengine-stubs
```

Or download the stub files directly:

- [storeengine-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-storeengine-stubs/main/storeengine-stubs.stub)
- [storeengine-constants-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-storeengine-stubs/main/storeengine-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/storeengine-stubs/storeengine-stubs.stub
        - vendor/mralaminahamed/storeengine-stubs/storeengine-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)

```
