PHPackages                             mralaminahamed/secure-custom-fields-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mralaminahamed/secure-custom-fields-stubs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mralaminahamed/secure-custom-fields-stubs
=========================================

Secure Custom Fields (ACF-compatible) function and class declaration stubs for static analysis.

v6.8.9(today)02↑2900%MITShell

Since Jun 19Pushed todayCompare

[ Source](https://github.com/mralaminahamed/phpstan-secure-custom-fields-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/secure-custom-fields-stubs)[ Docs](https://github.com/mralaminahamed/phpstan-secure-custom-fields-stubs)[ RSS](/packages/mralaminahamed-secure-custom-fields-stubs/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Secure Custom Fields stubs
==========================

[](#secure-custom-fields-stubs)

[PHPStan](https://phpstan.org/) / static-analysis stubs for the [**Secure Custom Fields**](https://wordpress.org/plugins/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
-------

[](#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
----------------

[](#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
----------

[](#versioning)

Releases are tagged `v` (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
------------------

[](#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
-------

[](#license)

MIT. Stub declarations are generated from the GPL-licensed Secure Custom Fields plugin source using [php-stubs/generator](https://github.com/php-stubs/generator).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

5

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34349365?v=4)[Al Amin Ahamed](/maintainers/mralaminahamed)[@mralaminahamed](https://github.com/mralaminahamed)

---

Top Contributors

[![mralaminahamed](https://avatars.githubusercontent.com/u/34349365?v=4)](https://github.com/mralaminahamed "mralaminahamed (6 commits)")

---

Tags

acfcustom-fieldsphpphpstansecure-custom-fieldsstubswordpressPHPStanwordpressstatic analysisstubscustom fieldswordpress pluginacfadvanced custom fieldssecure-custom-fields

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mralaminahamed-secure-custom-fields-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/mralaminahamed-secure-custom-fields-stubs/health.svg)](https://phpackages.com/packages/mralaminahamed-secure-custom-fields-stubs)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.3M90](/packages/php-stubs-woocommerce-stubs)[hellonico/acf-country

A country field for ACF.

12195.6k](/packages/hellonico-acf-country)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.7M118](/packages/php-stubs-wp-cli-stubs)[rilwis/meta-box

The most powerful &amp; comprehensive plugin to create, manage, show and connect dynamic data with forms and custom fields effortlessly on WordPress.

1.2k1.8k1](/packages/rilwis-meta-box)

PHPackages © 2026

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