contialessandro / oopnonce
Object Oriented library for Wordpress wp_nonce_*() methods
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/contialessandro/oopnonce
Requires
- php: >=7.0.
Requires (Dev)
- php-coveralls/php-coveralls: ~1.0
- phpunit/phpunit: 6.5.*
This package is not auto-updated.
Last update: 2025-10-30 09:24:58 UTC
README
Orignal library can be found at: https://codex.wordpress.org/WordPress_Nonces
set configuration with the below methods
$config = new \Nonces\NonceGenerator();
$config->getLife(),
$config->getAlgorithm(),
$config->setSalt(),
$config->getSession(),
$config->getUserId(),
Create Nonce
Will need salt and algortithm set before calling the below method
$nonce = new Nonce(); $nonce->generateNonce();
Verify Nonce
$verifier = new Nonce($input,$nonce); $verifier->compare($nonce, $action);