php-stubs / acf-pro-stubs
Advanced Custom Fields PRO stubs for static analysis.
Installs: 344 440
Dependents: 40
Suggesters: 0
Security: 0
Stars: 53
Watchers: 4
Forks: 12
Open Issues: 2
Requires
- php-stubs/wordpress-stubs: ^4.7 || ^5.0 || ^6.0
Requires (Dev)
- php: ~7.1 || ^8.0
- php-stubs/generator: ^0.8
- phpdocumentor/reflection-docblock: ^5.3
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
- dev-master
- v6.3.10
- v6.3.9
- v6.3.8
- v6.3.7
- v6.3.6
- v6.3.5
- v6.3.4
- v6.3.3
- v6.3.2.1
- v6.3.2
- v6.3.1.2
- v6.3.1.1
- v6.3.1
- v6.3.0.1
- v6.3.0
- v6.2.10
- v6.2.9
- v6.2.8
- v6.2.7
- v6.2.6.1
- v6.2.6
- v6.2.5
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1.1
- v6.2.1
- v6.2.0
- v6.1.8
- v6.1.7
- v6.1.6
- v6.1.5
- v6.1.4
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.12.3
- v5.12.2
- v5.12.1
- v5.12
- v5.11.4
- v5.11.3
- v5.11.2
- v5.11.1
- v5.11
- v5.10.2
- v5.10.1
- v5.10
- v5.9.9
- v5.9.8
- v5.9.7
- v5.9.6
- v5.9.5
- v5.9.4
- v5.9.3
- v5.9.2
- v5.9.1
- v5.9.0
- v5.8.14
- v5.8.13
- v5.8.12
- v5.8.11
- v5.8.9.1
- v5.8.9
- v5.8.8
- v5.8.7
- v5.8.6
- v5.8.5
- v5.8.4
- v5.8.3
- v5.8.2
- v5.8.1
- v5.8.0
- v5.7.13
- v5.7.12
- v5.7.10
- v5.7.9
- v5.7.8
- v5.7.7
- v5.7.6
- v5.7.5
- v5.7.4
- v5.7.3
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.10
- v5.6.9
- v5.6.8
- v5.6.7
- v5.6.6
- v5.6.5
- v5.6.4
- v5.6.3
- v5.6.2
- v5.6.1
- v5.6.0
- dev-szepeviktor-patch-1
This package is auto-updated.
Last update: 2024-11-06 13:00:00 UTC
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
- Run modern PHP version
- Clone this repository and
cd
into it - Insert your ACF Pro license to auth.json in the project root
- Run
composer install
- Install operating system level packages
apt-get install xmlstarlet unzip git
- Run
./release-latest-versions.sh
This will update acf-pro-stubs.php
per version, tag and commit it.