PHPackages                             php-stubs/genesis-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. [Testing &amp; Quality](/categories/testing)
4. /
5. php-stubs/genesis-stubs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

php-stubs/genesis-stubs
=======================

Genesis functions stubs for static analysis.

v3.5.0(1y ago)322.0k↓18%MITPHP

Since Jul 14Pushed 1y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Genesis Stubs
=============

[](#genesis-stubs)

[![Build Status](https://camo.githubusercontent.com/2b5300d6bd559a31769aa7039cd7b35f319a15fc9ba91af3fe26559107ea16b2/68747470733a2f2f7472617669732d63692e636f6d2f7068702d73747562732f67656e657369732d73747562732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/php-stubs/genesis-stubs)

This package provides stub declarations for [Genesis framework](https://www.studiopress.com/get-genesis/)functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan), which is not able to parse genesis as it is not clean OOP code.

Stubs are generated directly from the latest Genesis version that is required to be downloaded manually as it is blocked by a form. using [giacocorsiglia/stubs-generator](https://github.com/GiacoCorsiglia/php-stubs-generator).

### Requirements

[](#requirements)

- PHP &gt;=7.1

### Installation

[](#installation)

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

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

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

### Usage in PHPStan

[](#usage-in-phpstan)

Include all stubs in PHPStan configuration file.

```
parameters:
    bootstrapFiles:
        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
        - %rootDir%/../../php-stubs/genesis-stubs/genesis-stubs.php
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~596 days

Total

3

Last Release

625d ago

### Community

Maintainers

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

---

Top Contributors

[![Mte90](https://avatars.githubusercontent.com/u/403283?v=4)](https://github.com/Mte90 "Mte90 (6 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (6 commits)")

---

Tags

PHPStanwordpressstatic analysisgenesis

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.5k](/packages/larastan-larastan)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

33110.3M1.4k](/packages/szepeviktor-phpstan-wordpress)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.8k47.8M2.2k](/packages/wp-coding-standards-wpcs)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.5M104](/packages/php-stubs-woocommerce-stubs)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

75813.5k86](/packages/php-stubs-acf-pro-stubs)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22134.3M763](/packages/phpcompatibility-phpcompatibility-wp)

PHPackages © 2026

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