mralaminahamed/secure-custom-fields-stubs
Composer 安装命令:
composer require --dev mralaminahamed/secure-custom-fields-stubs
包简介
Secure Custom Fields (ACF-compatible) function and class declaration stubs for static analysis.
关键字:
README 文档
README
PHPStan / static-analysis stubs for the Secure Custom Fields WordPress plugin — the WordPress.org-maintained, ACF-compatible custom-fields plugin.
Use these when your plugin/theme calls Secure Custom Fields (or ACF-compatible) functions like get_field(), the_field(), acf_*(), have_rows(), etc., so PHPStan knows their signatures instead of reporting "undefined function".
Install
composer require --dev mralaminahamed/secure-custom-fields-stubs
Pin to a plugin version if you want stubs matching a specific release:
composer require --dev mralaminahamed/secure-custom-fields-stubs:6.8.9
Use with PHPStan
Reference the stub files in your phpstan.neon:
parameters: scanFiles: - vendor/mralaminahamed/secure-custom-fields-stubs/secure-custom-fields-stubs.stub - vendor/mralaminahamed/secure-custom-fields-stubs/secure-custom-fields-constants-stubs.stub
Versioning
Releases are tagged v<plugin-version> (e.g. v6.8.9) and track the upstream Secure Custom Fields releases. Each tag's stubs are generated from that exact plugin version.
Regenerate locally
composer install bash bin/release-latest-versions.sh 5 # latest 5 stable versions # or, against a source/ you placed manually: bash bin/generate.sh
License
MIT. Stub declarations are generated from the GPL-licensed Secure Custom Fields plugin source using php-stubs/generator.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-19