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

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

nimos/wp-nonce-wrapper
======================

0.1(9y ago)017PHP

Since Apr 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Nimos/wp-nonce-wrapper)[ Packagist](https://packagist.org/packages/nimos/wp-nonce-wrapper)[ RSS](/packages/nimos-wp-nonce-wrapper/feed)WikiDiscussions master Synced 1mo ago

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

Wordpress Nonce Wrapper
=======================

[](#wordpress-nonce-wrapper)

This wrapper provides Wordpress' nonce functionality in an object-oriented environment.

Installation
============

[](#installation)

To install the package, run `composer require nimos/wp-nonce-wrapper`.
Alternatively, you can download the zip file from Github, and run `composer update` to install the dependencies.

Usage
=====

[](#usage)

Create a Nonce:

```
$nonce = WpNonceWrapper::create_nonce();
```

Generate a nonce URL for '':

```
$url = WpNonceWrapper::nonce_url( 'http://example.com' );
```

Generate hidden input to use a nonce in a form:

```
WpNonceWrapper::nonce_field();
```

Verify a Nonce:

```
$valid = WpNonceWrapper::verify_nonce( $nonce );
```

Display an are you sure dialogue, to manually confirm an action:

```
WpNonceWrapper::nonce_ays( $someAction );
```

Testing
=======

[](#testing)

To run the tests, run `vendor\bin\phpunit tests\WrapperTest.php`
You will likely have to update WP\_DIR in the test file to point to your Wordpress installation.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6216c0817fcd665e8399b30c954c22149765060bbc733b2346585a2364fc3db2?d=identicon)[nimos](/maintainers/nimos)

---

Top Contributors

[![mosni](https://avatars.githubusercontent.com/u/1005315?v=4)](https://github.com/mosni "mosni (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nativephp/electron

Electron wrapper for the NativePHP framework.

519114.4k8](/packages/nativephp-electron)[kadet/keylighter

Yet another syntax highlighter for PHP

333.2k1](/packages/kadet-keylighter)[code16/formoj

Customizable form renderer

332.6k](/packages/code16-formoj)[nullthoughts/laravel-data-sync

Laravel utility to keep records synced between environments through source control

331.4k](/packages/nullthoughts-laravel-data-sync)

PHPackages © 2026

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