PHPackages                             dinamiko/nonces - 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. [Security](/categories/security)
4. /
5. dinamiko/nonces

ActiveLibrary[Security](/categories/security)

dinamiko/nonces
===============

1.0.1(9y ago)019PHP

Since Apr 8Pushed 9y agoCompare

[ Source](https://github.com/Dinamiko/Nonces)[ Packagist](https://packagist.org/packages/dinamiko/nonces)[ RSS](/packages/dinamiko-nonces/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

DK Nonces
=========

[](#dk-nonces)

Introduction
------------

[](#introduction)

A simple to use implementation of WordPress Nonces.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Run the tests](#run-the-tests)

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

[](#installation)

Install with [Composer](https://getcomposer.org):

```
$ composer require dinamiko/nonces
```

Usage
-----

[](#usage)

Create a nonce:

```
$nonce = new Dinamiko\Nonces\Nonce( 'my-action' );
$nonce_value = (string) $nonce;
```

Create a nonce field:

```
$nonce = new Dinamiko\Nonces\Nonce( 'my-action' );
$field = $nonce->create_field();
```

Create a nonce URL:

```
$nonce = new Dinamiko\Nonces\Nonce( 'my-action' );
$url = $nonce->create_url( 'http://example.com' );
```

Verify a nonce:

```
$nonce = new Dinamiko\Nonces\Nonce( 'my-action' );
$is_valid = $nonce->is_valid( $_POST['foo'] );
```

Run the tests
-------------

[](#run-the-tests)

```
$ cd vendor/dinamiko/nonces
$ composer install
$ vendor/bin/phpunit
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

2

Last Release

3371d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/456223?v=4)[Emili Castells](/maintainers/dinamiko)[@Dinamiko](https://github.com/Dinamiko)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dinamiko-nonces/health.svg)

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

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M139](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k36](/packages/paragonie-ecc)

PHPackages © 2026

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