PHPackages                             darkflameninja/nuonce - 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. darkflameninja/nuonce

ActiveComposer-wordpress-package[Utility &amp; Helpers](/categories/utility)

darkflameninja/nuonce
=====================

Something to simplify the handling with Nonces in WP in PHP OOP

1.0.2(8y ago)016MITPHPPHP &gt;=5.6.0

Since Mar 27Pushed 8y agoCompare

[ Source](https://github.com/NotAnNSASpy/Nuonce)[ Packagist](https://packagist.org/packages/darkflameninja/nuonce)[ RSS](/packages/darkflameninja-nuonce/feed)WikiDiscussions master Synced 3w ago

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

Nuonce
======

[](#nuonce)

Nuonce tries to simplify the handling with Nonces in PHP OOP.

Install
-------

[](#install)

```
composer require Darkflameninja/Nuonce

```

Or just add

```
"require Darkflameninja/Nuonce": "1.0"

```

to your `composer.json` file and run a composer update.

Usage:
------

[](#usage)

### Define your action &amp; nonce

[](#define-your-action--nonce)

```
$yourobj = new Nuonce($action, $nonce); // if your input == ''(in both cases),it's predefined as action = nonce_action & nonce = _wpnonce
```

### Create an URL

[](#create-an-url)

```
$url = $yourobj->url($url, $name);
```

### Create a nonce field

[](#create-a-nonce-field)

```
$yourobj->field($name);
```

You also can set the referer as first parameter

```
$referer = 'http://mysite.com/something';
$yourobj->field($referer);
```

Skip the referer by setting it false.

```
$yourobj->field($referer, false);
```

### Create a nonce

[](#create-a-nonce)

```
$nonce = $yourobj->create();
```

### Check an URL for a valid nonce

[](#check-an-url-for-a-valid-nonce)

```
$retval = $yourobj->AdminReferer($queryArg);
```

### Check an AJAX URL for a valid nonce

[](#check-an-ajax-url-for-a-valid-nonce)

```
$queryArg = '_myNonce';
$retval = $yourobj->AjaxReferer($queryArg);
```

If the third parameter is set to false, the script won't die, if the nonce is invalid

```
$retval = $yourobj->AjaxReferer($queryArg, false);
```

### Verify a nonce

[](#verify-a-nonce)

```
$retval = $yourobj->verify();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~3 days

Total

3

Last Release

3005d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/753b5a3dfc7fb39f30301db94517ee02c6f4e84a8461cf24f6a052b087c59cd7?d=identicon)[Darkflameninja](/maintainers/Darkflameninja)

---

Top Contributors

[![NotAnNSASpy](https://avatars.githubusercontent.com/u/29543811?v=4)](https://github.com/NotAnNSASpy "NotAnNSASpy (25 commits)")

### Embed Badge

![Health badge](/badges/darkflameninja-nuonce/health.svg)

```
[![Health](https://phpackages.com/badges/darkflameninja-nuonce/health.svg)](https://phpackages.com/packages/darkflameninja-nuonce)
```

###  Alternatives

[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1859.0k](/packages/myparcelnl-magento)

PHPackages © 2026

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