PHPackages                             mccomaschris/lockr-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. mccomaschris/lockr-stubs

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

mccomaschris/lockr-stubs
========================

Based on paulthewalton/acf-stubs. Lockr plugin function, class, and global variable declaration stubs for easier static analysis.

3.0.4(4y ago)018GPL-2.0+PHP

Since Dec 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mccomaschris/lockr-stubs)[ Packagist](https://packagist.org/packages/mccomaschris/lockr-stubs)[ RSS](/packages/mccomaschris-lockr-stubs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

WordPress Advanced Custom Fields Lockr Stubs
============================================

[](#wordpress-advanced-custom-fields-lockr-stubs)

This package provides stub declarations for WordPress Advanced Custom Fields (ACF) Lockr core functions, classes, interfaces, and global variables. These stubs can help plugin and theme developers leverage static analysis tools.

The stubs are generated directly from the [source](https://wpackagist.org/search?q=lockr&type=plugin&search=) using [giacocorsiglia/stubs-generator](https://github.com/GiacoCorsiglia/php-stubs-generator). Needless to say, this library repackages a subset of WordPress ACF Lockr code, which is the work of the WordPress core ACF developers Lockr. Granted, it's a useless subset without the real thing!

Many thanks to [GiacoCorsiglia](https://github.com/GiacoCorsiglia) and [paulthewalton](https://github.com/paulthewalton), who did all the hard work on [giacocorsiglia/wordpress-stubs](https://github.com/GiacoCorsiglia/wordpress-stubs) and [acf-stubs](https://github.com/paulthewalton/acf-stubs), from which this is shamelessly ripped off.

Installation
------------

[](#installation)

Require this package as a dev-dependency with [Composer](https://getcomposer.org):

```
composer require --dev mccomaschris/lockr-stubs

```

Alternatively, you may download `lockr-stubs.php` directly.

Usage for Intellisense
----------------------

[](#usage-for-intellisense)

From Wordpress Stubs:

> If your editor has trouble parsing all of WordPress, you may find the stubs useful for enabling code completion and related features. For example, [here](https://github.com/bmewburn/vscode-intelephense/issues/113) are instructions for usage with VSCode's [Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) extension. (In my experience, however, Intelephense parses WordPress core just fine.)

Versioning
----------

[](#versioning)

This package is versioned to match the Lockr version from which the stubs are generated. If any fixes to stubs are required, subsequent releases will be versioned as `LOCKR_VERSION.X`.

Generating stubs for a different Lockr version
----------------------------------------------

[](#generating-stubs-for-a-different-lockr-version)

You should be running PHP 7.1 or later to follow these steps, so any function definitions that are polyfills for older versions of PHP are excluded from the stubs. Additionally, the Stubs Generator package at least requires PHP 7.1.

1. Clone this repository and `cd` into it.
2. Update `"wpackagist-plugin/lockr": "X.X.X"` in `composer.json` with your desired version.
3. Run `composer update`
4. Run `./generate.sh`

The `lockr-stubs.php` file should now be updated. Feel free to submit a Pull Request if you'd like to see a release for a newer version. If things have fallen behind, please generate stubs for each missing version in a distinct commit so we can have a continuous release history.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34515c639712e2e66d9e7e60f2d3eb4cebc1a048b645b82458d553964f125c26?d=identicon)[mccomaschris](/maintainers/mccomaschris)

---

Top Contributors

[![mccomaschris](https://avatars.githubusercontent.com/u/26128?v=4)](https://github.com/mccomaschris "mccomaschris (1 commits)")

---

Tags

wordpressstatic analysislockr

### Embed Badge

![Health badge](/badges/mccomaschris-lockr-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/mccomaschris-lockr-stubs/health.svg)](https://phpackages.com/packages/mccomaschris-lockr-stubs)
```

###  Alternatives

[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19013.0M263](/packages/php-stubs-wordpress-stubs)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[php-stubs/wp-cli-stubs

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

302.3M79](/packages/php-stubs-wp-cli-stubs)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)

PHPackages © 2026

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