PHPackages                             wpsyntex/polylang-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wpsyntex/polylang-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wpsyntex/polylang-stubs
=======================

Polylang and Polylang Pro function and class declaration stubs for static analysis.

3.7.3(10mo ago)6158.0k↑12.6%1GPL-3.0-or-laterPHPCI passing

Since Mar 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/polylang/polylang-stubs)[ Packagist](https://packagist.org/packages/wpsyntex/polylang-stubs)[ Docs](https://polylang.pro)[ RSS](/packages/wpsyntex-polylang-stubs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (13)Used By (1)

Polylang Stubs
==============

[](#polylang-stubs)

This package provides stub declarations for [Polylang](https://wordpress.org/plugins/polylang/) and [Polylang Pro](https://polylang.pro). These stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://phpstan.org/).

Stubs are generated directly from the source using [php-stubs/generator](https://github.com/php-stubs/generator).

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

[](#requirements)

- PHP &gt;=7.3

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

[](#installation)

Require this package as a development dependency with Composer.

```
composer require --dev wpsyntex/polylang-stubs
```

Usage in PHPStan
----------------

[](#usage-in-phpstan)

Include the stubs in the PHPStan configuration file.

```
parameters:
  bootstrapFiles:
    - vendor/wpsyntex/polylang-stubs/polylang-stubs.php
```

It's also recommended to use the Polylang PHPStan extension [wpsyntex/polylang-phpstan](https://github.com/polylang/polylang-phpstan)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance75

Regular maintenance activity

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~176 days

Recently: every ~219 days

Total

10

Last Release

306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28a15a62bebc943eac612deb52bb1230b71c878f1a6687cdf534b59b73a73ef6?d=identicon)[Screenfeed](/maintainers/Screenfeed)

![](https://www.gravatar.com/avatar/c19c76940ef74dd439615510fff31c11e2d8705d1ac7670751f977fbc6039013?d=identicon)[Chouby](/maintainers/Chouby)

![](https://www.gravatar.com/avatar/556f6768aac8ac41c10bbd94e13fc8138dff1cbe93a7d01a4bcc5d0849ab4fca?d=identicon)[Hug0-Drelon](/maintainers/Hug0-Drelon)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (19 commits)")[![Hug0-Drelon](https://avatars.githubusercontent.com/u/69580439?v=4)](https://github.com/Hug0-Drelon "Hug0-Drelon (12 commits)")[![Screenfeed](https://avatars.githubusercontent.com/u/1878479?v=4)](https://github.com/Screenfeed "Screenfeed (12 commits)")[![Marianne380](https://avatars.githubusercontent.com/u/25196630?v=4)](https://github.com/Marianne380 "Marianne380 (2 commits)")[![manooweb](https://avatars.githubusercontent.com/u/1003778?v=4)](https://github.com/manooweb "manooweb (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")

### Embed Badge

![Health badge](/badges/wpsyntex-polylang-stubs/health.svg)

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

###  Alternatives

[bitrix-expert/tools

Helpers for developers on Bitrix

3720.8k1](/packages/bitrix-expert-tools)

PHPackages © 2026

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