PHPackages                             php-stubs/facetwp-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. php-stubs/facetwp-stubs

ActiveLibrary

php-stubs/facetwp-stubs
=======================

FacetWP stubs for static analysis.

v4.4.1(8mo ago)11.1k↓28%[1 issues](https://github.com/php-stubs/facetwp-stubs/issues)[1 PRs](https://github.com/php-stubs/facetwp-stubs/pulls)MITPHP

Since Aug 27Pushed 8mo agoCompare

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

READMEChangelogDependencies (3)Versions (4)Used By (0)

FacetWP Stubs
=============

[](#facetwp-stubs)

[![Packagist stats](https://camo.githubusercontent.com/d967d181af0bf83df9f6ab227e2f1834e62b2ae82622b0903e3fa9e2333b92aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d73747562732f666163657477702d73747562732e737667)](https://packagist.org/packages/php-stubs/facetwp-stubs/stats)[![Packagist](https://camo.githubusercontent.com/f4df96ffb767dfbe965eb7a9c0bc841b784dec86c77248829695e6d57bfc3649/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d73747562732f666163657477702d73747562732e7376673f636f6c6f723d344343363145267374796c653d706f706f7574)](https://packagist.org/packages/php-stubs/facetwp-stubs)

It provides stub declarations for [FacetWP](https://facetwp.com/)core functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).

The stubs are generated from source code manually placed in `source/facetwp`using [php-stubs/generator](https://github.com/php-stubs/generator).

The changelog can be found in [FacetWP's Help Center](https://facetwp.com/help-center/changelog/).

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

[](#requirements)

- PHP ^8.0

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

[](#installation)

Require this package as a development dependency with [Composer](https://getcomposer.org).

```
composer require --dev php-stubs/facetwp-stubs
```

Alternatively you may download `facetwp-stubs.php` directly.

Versioning
----------

[](#versioning)

This package is versioned to match the FacetWP version from which the stubs are generated.

Updating stubs
--------------

[](#updating-stubs)

1. Run modern PHP version
2. Clone this repository and `cd` into it
3. Download the latest source from your [FacetWP](https://facetwp.com/my-account/) account and extract the zip in `source/facetwp` directory. You can also download the zip and save it as `source/facetwp.zip`.
4. Run `./release-latest-versions.sh`This will automatically update `facetwp-stubs.php` per version, tag and commit it.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 86.7% 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 ~0 days

Total

2

Last Release

264d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135d8104cdf926e2b15b6a06413153a9582729f0cd48ccba7bc7e62878a39781?d=identicon)[szepeviktor](/maintainers/szepeviktor)

---

Top Contributors

[![jmslbam](https://avatars.githubusercontent.com/u/145887?v=4)](https://github.com/jmslbam "jmslbam (13 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")

---

Tags

facetwpstubswordpresswordpress-pluginPHPStanwordpressstatic analysisfacetwp

### Embed Badge

![Health badge](/badges/php-stubs-facetwp-stubs/health.svg)

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

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19513.0M263](/packages/php-stubs-wordpress-stubs)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

73692.8k50](/packages/php-stubs-acf-pro-stubs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.3M79](/packages/php-stubs-wp-cli-stubs)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)

PHPackages © 2026

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