定制 arts/elementor-stubs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arts/elementor-stubs

最新稳定版本:v3.34.0.4

Composer 安装命令:

composer require arts/elementor-stubs

包简介

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

README 文档

README

Test Latest Release Packagist Version PHP Version Downloads Buy Me A Coffee

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

  • 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

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

Installation

composer require --dev arts/elementor-stubs

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 for your specific Elementor version.

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

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

Buy Me A Coffee

Made with ❤️ by Artem Semkin

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-12-21