PHPackages                             php-stubs/acf-pro-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/acf-pro-stubs

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

php-stubs/acf-pro-stubs
=======================

Advanced Custom Fields PRO stubs for static analysis.

v6.8.2(1mo ago)75813.5k↓13.3%13[3 issues](https://github.com/php-stubs/acf-pro-stubs/issues)20MITPHP

Since Apr 29Pushed 1mo ago4 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (131)Used By (20)

ACF Pro Stubs
=============

[](#acf-pro-stubs)

It provides stub declarations for [ACF Pro](https://advancedcustomfields.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 `wpengine/advanced-custom-fields-pro`using [php-stubs/generator](https://github.com/php-stubs/generator).

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

[](#requirements)

- PHP ^8.0

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

[](#installation)

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

```
composer require --dev php-stubs/acf-pro-stubs
```

Alternatively you may download `acf-pro-stubs.php` directly.

Versioning
----------

[](#versioning)

This package is versioned to match the ACF Pro 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. Insert your ACF Pro license to auth.json in the project root
4. Run `composer install`
5. Install operating system level packages `apt-get install xmlstarlet unzip git`
6. Run `./release-latest-versions.sh`

This will update `acf-pro-stubs.php` per version, tag and commit.

After the script finishes, push the commits and tags manually:

```
git push --tags && git push
```

Pushing tags trigger automated GitHub releases.

Commits are intentionally left for a manual push so you can review before they go public.

To use the remote as the source of truth for existing tags (e.g. after a fresh clone or interrupted run):

```
REMOTE_CHECK=1 ACF_PRO_KEY="..." ./release-latest-versions.sh
```

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance93

Actively maintained with recent releases

Popularity53

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~17 days

Recently: every ~0 days

Total

130

Last Release

33d ago

Major Versions

v5.12.2 → v6.0.22022-10-03

v5.12.3 → v6.0.02022-12-25

### Community

Maintainers

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

---

Top Contributors

[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (88 commits)")[![juhojama](https://avatars.githubusercontent.com/u/24766281?v=4)](https://github.com/juhojama "juhojama (51 commits)")[![cezarpopa](https://avatars.githubusercontent.com/u/3178790?v=4)](https://github.com/cezarpopa "cezarpopa (1 commits)")[![joemaller](https://avatars.githubusercontent.com/u/8320?v=4)](https://github.com/joemaller "joemaller (1 commits)")[![mikemanger](https://avatars.githubusercontent.com/u/74821?v=4)](https://github.com/mikemanger "mikemanger (1 commits)")[![SebKay](https://avatars.githubusercontent.com/u/1873695?v=4)](https://github.com/SebKay "SebKay (1 commits)")

---

Tags

acfacf-prowordpresswordpress-pluginPHPStanwordpressstatic analysisacf

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

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

6.5k55.4M8.4k](/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.5M102](/packages/php-stubs-woocommerce-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.3M759](/packages/phpcompatibility-phpcompatibility-wp)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)

PHPackages © 2026

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