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.5.0(8mo ago)73692.8k—5.7%12[3 issues](https://github.com/php-stubs/acf-pro-stubs/issues)20MITPHP

Since Apr 29Pushed 8mo 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 1mo ago

READMEChangelog (10)Dependencies (3)Versions (115)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 it.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity52

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 70.4% 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 ~26 days

Total

114

Last Release

256d 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 (34 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)")

---

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.4k43.5M5.2k](/packages/larastan-larastan)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[wp-coding-standards/wpcs

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

2.8k42.5M1.6k](/packages/wp-coding-standards-wpcs)[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.

22130.6M587](/packages/phpcompatibility-phpcompatibility-wp)[ekino/phpstan-banned-code

Detected banned code using PHPStan

2925.6M92](/packages/ekino-phpstan-banned-code)[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.

3462.2M52](/packages/shipmonk-dead-code-detector)

PHPackages © 2026

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