arts/wpml-stubs

PHPStan stubs for WPML Multilingual CMS - auto-generated for local development

Maintainers

Package info

github.com/artkrsk/wpml-stubs

pkg:composer/arts/wpml-stubs

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v4.9.2 2026-08-14 05:48 UTC

This package is auto-updated.

Last update: 2026-08-14 06:05:50 UTC


README

PHPStan stubs for WPML Multilingual CMS for local development.

Requirements

  • PHP 8.0 or higher
  • PHPStan for static analysis

Dependencies

This package depends on php-stubs/woocommerce-stubs to provide WP_Background_Process classes that WPML extends. This prevents duplicate class definitions when using both WPML and WooCommerce.

Installation

composer require --dev arts/wpml-stubs

Usage with PHPStan

Add to your phpstan.neon:

parameters:
    bootstrapFiles:
        - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
        - vendor/arts/wpml-stubs/wpml-stubs.php

Generating Stubs

  1. Copy .env.example to .env
  2. Set WPML_PATH to your WPML installation
  3. Run: composer generate
cp .env.example .env
# Edit .env with your path
composer generate

Testing

Run tests to validate generated stubs:

composer test

License

GPL-3.0-or-later