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(11mo ago)6172.9k—3%1GPL-3.0-or-laterPHPCI passing

Since Mar 9Pushed 1w 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 3d 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 95% of packages

Maintenance77

Regular maintenance activity

Popularity37

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 54.8% 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 ~176 days

Recently: every ~219 days

Total

10

Last Release

352d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1878479?v=4)[Grégory Viguier](/maintainers/Screenfeed)[@Screenfeed](https://github.com/Screenfeed)

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

![](https://avatars.githubusercontent.com/u/69580439?v=4)[Hugo Drelon](/maintainers/Hug0-Drelon)[@Hug0-Drelon](https://github.com/Hug0-Drelon)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (34 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

[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

81351.2k8](/packages/ralphjsmit-livewire-urls)[acacha/helpers

Extra helpers for Laravel

25267.1k2](/packages/acacha-helpers)[benmorel/gsm-charset-converter

Converts GSM 03.38 strings to and from UTF-8

16477.7k](/packages/benmorel-gsm-charset-converter)[0x13a/geodistance-php

Calculate geodistance between two points, latitude and longitude

3120.6k](/packages/0x13a-geodistance-php)[typicms/bootforms

Just a Formbuilder with some Bootstrap 5 specific conveniences. Remembers old input, retrieves error messages and handles all your boilerplate Bootstrap markup automatically.

1359.3k3](/packages/typicms-bootforms)

PHPackages © 2026

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