PHPackages                             ht/wp-htnonce - 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. ht/wp-htnonce

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

ht/wp-htnonce
=============

Protyping for a improved management of Wordpress Nonces.

00PHP

Since Aug 21Pushed 8y agoCompare

[ Source](https://github.com/halittiryaki/WP-HTNonce)[ Packagist](https://packagist.org/packages/ht/wp-htnonce)[ RSS](/packages/ht-wp-htnonce/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

WP-HTNonce
==========

[](#wp-htnonce)

Prototyping for a improved management of Wordpress Nonces. Providing an extensible validator implementation on top of the built-in WordPress Nonces eco-system.

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

[](#installation)

HTNonce is implemented as a WordPress Plugin with composer support.

1. Checkout

- Simply clone the project directly from the GitHub repository and to install dependencies run:

```
    $ composer install
```

- Or add the following line to the `require` section of your project's existing `composer.json` file:

```
    "require": {
        "ht/wp-htnonce": "master"
    }
```

then to install the dependencies run :

```
    $ composer update
```

2. Install Wordpress Plugin

Follow the instructions in the `Manual Plugin Installation` section at:

[Wordpress Plugin Installation](https://codex.wordpress.org/Managing_Plugins)

Usage
-----

[](#usage)

The usage is straight forward. For detailed informations on the internal functionings, check the inline-documentations inside the class source files.

Create nonce with context name `delete-post:16` if not used, otherwise throw exception if context name in use by another nonce:

```
