PHPackages                             arts/wpml-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. [Localization &amp; i18n](/categories/localization)
4. /
5. arts/wpml-stubs

ActiveLibrary[Localization &amp; i18n](/categories/localization)

arts/wpml-stubs
===============

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

v4.9.2(yesterday)01↑2900%GPL-3.0-or-laterPHPPHP &gt;=8.0CI passing

Since Aug 14Pushed yesterdayCompare

[ Source](https://github.com/artkrsk/wpml-stubs)[ Packagist](https://packagist.org/packages/arts/wpml-stubs)[ RSS](/packages/arts-wpml-stubs/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

WPML Stubs
==========

[](#wpml-stubs)

PHPStan stubs for WPML Multilingual CMS for local development.

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

[](#requirements)

- PHP 8.0 or higher
- PHPStan for static analysis

Dependencies
------------

[](#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
------------

[](#installation)

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

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

[](#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
----------------

[](#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
-------

[](#testing)

Run tests to validate generated stubs:

```
composer test
```

License
-------

[](#license)

GPL-3.0-or-later

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1d ago

### 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 (13 commits)")

---

Tags

PHPStanwordpressstatic analysisstubsmultilingualwpmltype-safetyintellisensetype-definitionside-autocomplete

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.7M128](/packages/php-stubs-woocommerce-stubs)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

73862.0k98](/packages/php-stubs-acf-pro-stubs)

PHPackages © 2026

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