PHPackages                             arts/elementor-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. arts/elementor-stubs

ActiveLibrary

arts/elementor-stubs
====================

Comprehensive PHPStan stubs for Elementor and Elementor Pro WordPress page builder - auto-generated, self-contained, plug &amp; play

v3.35.7(2mo ago)51.9k↓40.6%14GPL-3.0-or-laterPHPPHP &gt;=8.0CI passing

Since Dec 21Pushed 1mo agoCompare

[ Source](https://github.com/artkrsk/elementor-stubs)[ Packagist](https://packagist.org/packages/arts/elementor-stubs)[ Fund](https://www.buymeacoffee.com/artemsemkin)[ RSS](/packages/arts-elementor-stubs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (16)Used By (4)

Elementor Stubs
===============

[](#elementor-stubs)

[![Test](https://github.com/artkrsk/elementor-stubs/actions/workflows/integrate.yml/badge.svg)](https://github.com/artkrsk/elementor-stubs/actions/workflows/integrate.yml)[![Latest Release](https://camo.githubusercontent.com/6d8dfcdf6bc6612e3a00b059a44976f1e17611070442fe561aa65609f7788e30/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6172746b72736b2f656c656d656e746f722d7374756273)](https://github.com/artkrsk/elementor-stubs/releases/latest)[![Packagist Version](https://camo.githubusercontent.com/ceb4f914fe6a97abec3b9dc150609248ce1a2116daa75fadd74d61b9470bf863/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617274732f656c656d656e746f722d7374756273)](https://packagist.org/packages/arts/elementor-stubs)[![PHP Version](https://camo.githubusercontent.com/099c93b6ecab79fef95067b4c851438dbf22a3b252bf2e8dacbe09a14c3b212d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f617274732f656c656d656e746f722d73747562732f706870)](https://packagist.org/packages/arts/elementor-stubs)[![Downloads](https://camo.githubusercontent.com/f2482e74d7c9945fb8e518ae24a348a86f60878378721edfecfd913f5731bcd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617274732f656c656d656e746f722d7374756273)](https://packagist.org/packages/arts/elementor-stubs)[![Buy Me A Coffee](https://camo.githubusercontent.com/21ed208e3ebb5ac22c5aec8b397de95a2af4e4c88f7adeb89fc7354af38afda3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532304d6525323041253230436f666665652d737570706f72742d79656c6c6f773f6c6f676f3d6275792d6d652d612d636f66666565)](https://buymeacoffee.com/artemsemkin)

Comprehensive PHPStan stubs for Elementor and Elementor Pro WordPress page builder.

Get full IDE autocomplete, IntelliSense, and type safety when developing Elementor widgets, extensions, and custom implementations.

Features
--------

[](#features)

- Full IDE autocomplete for all Elementor and Elementor Pro classes
- Type safety and static analysis with PHPStan
- Catch errors before runtime when developing widgets and extensions
- Self-contained - includes all necessary Elementor constants
- Auto-updated with new Elementor releases

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- PHPStan for static analysis
- Automatically includes WordPress and WooCommerce stubs as dependencies

Installation
------------

[](#installation)

```
composer require --dev arts/elementor-stubs
```

Usage with PHPStan
------------------

[](#usage-with-phpstan)

Add to your `phpstan.neon`:

```
parameters:
    bootstrapFiles:
        - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
        - vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
        - vendor/arts/elementor-stubs/elementor-stubs.php
```

The stubs include both Elementor Free and Elementor Pro type definitions.

> **Note:** Stubs are versioned to match Elementor releases. Check [releases](https://github.com/artkrsk/elementor-stubs/releases) for your specific Elementor version.

Regenerating Stubs
------------------

[](#regenerating-stubs)

For contributors or to generate stubs from a specific Elementor version:

1. Copy `.env.example` to `.env`
2. Set `ELEMENTOR_PATH` to your Elementor installation
3. Optionally set `ELEMENTOR_PRO_PATH` for Pro stubs
4. Run: `composer generate`

```
cp .env.example .env
# Edit .env with your paths
composer generate
```

💖 Support
---------

[](#-support)

If you find this plugin useful, consider buying me a coffee:

[![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://buymeacoffee.com/artemsemkin)

---

Made with ❤️ by [Artem Semkin](https://artemsemkin.com)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance89

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

14

Last Release

65d ago

PHP version history (2 changes)v3.33.6PHP &gt;=7.2

v3.34.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bea30c2234cb7a9564df323f88f993da491615955ed3fb66a42db98c12d0d15?d=identicon)[artkrsk](/maintainers/artkrsk)

---

Top Contributors

[![artkrsk](https://avatars.githubusercontent.com/u/15735987?v=4)](https://github.com/artkrsk "artkrsk (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")

---

Tags

autocompleteelementorelementor-widgetsintellisensepage-builderphpstanstatic-analysisstubstype-definitionstype-safetywordpresswordpress-pluginPHPStanwordpressstatic analysisstubselementorpage buildertype-safetyintellisenseelementor-protype-definitionside-autocomplete

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arts-elementor-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/arts-elementor-stubs/health.svg)](https://phpackages.com/packages/arts-elementor-stubs)
```

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3257.8M898](/packages/szepeviktor-phpstan-wordpress)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

73692.8k50](/packages/php-stubs-acf-pro-stubs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.3M79](/packages/php-stubs-wp-cli-stubs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
