PHPackages                             jeffarrubla/wp-nonce - 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. jeffarrubla/wp-nonce

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

jeffarrubla/wp-nonce
====================

Class to use wp\_nonce\_\*() functions in an object oriented way.

015PHP

Since Feb 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jeffarrubla/wp_nonce)[ Packagist](https://packagist.org/packages/jeffarrubla/wp-nonce)[ RSS](/packages/jeffarrubla-wp-nonce/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

WPNonce
=======

[](#wpnonce)

Class to use `wp_nonce_*()` functions in an object oriented way.

These functions are:

- [wp\_nonce\_ays()](https://codex.wordpress.org/Function_Reference/wp_nonce_ays)
- [wp\_nonce\_field()](https://codex.wordpress.org/Function_Reference/wp_nonce_field)
- [wp\_nonce\_url()](https://codex.wordpress.org/Function_Reference/wp_nonce_url)
- [wp\_verify\_nonce()](https://codex.wordpress.org/Function_Reference/wp_verify_nonce)
- [wp\_create\_nonce()](https://codex.wordpress.org/Function_Reference/wp_create_nonce)
- [check\_admin\_referer()](https://codex.wordpress.org/Function_Reference/check_admin_referer)
- [check\_ajax\_referer()](https://codex.wordpress.org/Function_Reference/check_ajax_referer)
- [wp\_referer\_field()](https://codex.wordpress.org/Function_Reference/wp_referer_field)

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

- [PHP](https://secure.php.net/)
- [Composer](https://getcomposer.org/)

### Installing

[](#installing)

Clone the project

```
git clone https://github.com/jeffarrubla/wp_nonce.git

```

download the zip or using composer

```
{
    "require": {
        "jeffarrubla/wp-nonce": "dev-master",
        "php": ">=5.4"
    }
}

```

Running the tests
-----------------

[](#running-the-tests)

To test that the `wp_nonce_*()` functions can be called from the class. To test install using composer, it requires:

- [Patchwork](http://patchwork2.org/)
- [PHPUnit](https://phpunit.de/)

To run the test do:

```
phpunit --bootstrap tests/bootstrap.php  tests/WPNonceTest

```

or

```
phpunit --bootstrap tests/bootstrap.php  tests/WPNonceTest  --testdox

```

Deployment
----------

[](#deployment)

### Prerequisites

[](#prerequisites-1)

- [Wordpress](https://wordpress.com/)

License
-------

[](#license)

[GPL2](https://www.gnu.org/licenses/gpl-2.0.html)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2cbc2e54acaf1be4841ecd0782742ebcf95dd0faec9d17c8a714351a0a1a863?d=identicon)[jeffarrubla](/maintainers/jeffarrubla)

### Embed Badge

![Health badge](/badges/jeffarrubla-wp-nonce/health.svg)

```
[![Health](https://phpackages.com/badges/jeffarrubla-wp-nonce/health.svg)](https://phpackages.com/packages/jeffarrubla-wp-nonce)
```

PHPackages © 2026

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