Download the PHP package roave/roave-nonce-utility without Composer
On this page you can find all versions of the php package roave/roave-nonce-utility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roave/roave-nonce-utility
More information about roave/roave-nonce-utility
Files in roave/roave-nonce-utility
Package roave-nonce-utility
Short Description A utility component for handling nonces
License
Informations about the package roave-nonce-utility
Roave\NonceUtility
A simple module that helps with managing nonces
Usage of this module assumes that you have already installed and configured the DoctrineModule available here http://github.com/doctrine/DoctrineModule
Installation
Install the module by adding the module to your composer file
After this you must enable the module by adding Roave\NonceUtility
to your
application.config.php
usually found in the config
directory in the application
root.
Now you need to add an alias for the Roave\NonceUtility\ObjectManager
to
the object manager of your choice.
This is the standard configuration for most ORM
users
The last step is to add an entity resolver for our interface to the doctrine configuration and have that class implement the NonceOwnerInterface
Again for most standard ORM
users
And the nonce owner entity class
Usage
To use the module you simply need aquire the nonce service from the service locator
The service interface is inlined here
All versions of roave-nonce-utility with dependencies
zendframework/zend-stdlib Version ^2.5 || ^3.0
zendframework/zend-math Version ^2.5 || ^3.0
zendframework/zend-http Version ^2.5 || ^3.0
doctrine/doctrine-module Version ^0.9 || ^1.1 || ^2.0
php Version >=7.2.0