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 2mo 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 43% 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

3323d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03f3038e0af76e01a89e1c5bc4ce904b5c47728edaa4507fcddadc04fd12123f?d=identicon)[dinamiko](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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