php-stubs/acf-pro-stubs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-stubs/acf-pro-stubs

最新稳定版本:v6.5.0

Composer 安装命令:

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

包简介

Advanced Custom Fields PRO stubs for static analysis.

README 文档

README

It provides stub declarations for ACF Pro core functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.

The stubs are generated from wpengine/advanced-custom-fields-pro using php-stubs/generator.

Requirements

  • PHP ^8.0

Installation

Require this package as a development dependency with Composer.

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

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

Versioning

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

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.

统计信息

  • 总下载量: 617.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 68
  • 点击次数: 11
  • 依赖项目数: 49
  • 推荐数: 0

GitHub 信息

  • Stars: 66
  • Watchers: 3
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04