rhamoudi/inpsyde

A composer package, which serves the functionality working with WordPress Nonce.

dev-master 2018-06-18 12:32 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:14:33 UTC


README

A composer package, which serves the functionality working with WordPress Nonce

Installation with composer

This SDK uses composer.

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

For more information on how to use/install composer, please visit: https://github.com/composer/composer

To install the package into your project, simply

$ composer require rhamoudi/inpsyde

Requirements

Php versions 7.0 and newer.

Quick start and examples

$context = new WPNonceContext;
$nonce_value = $context->createNonce('test_nonce');

Available Methods

$context = new WPNonceContext;

$context->createNonce('test_nonce1')
    ->changeAction('test_nonce')
    ->changeErrors(true)
    ->errorMessage('Your WordPress Nonce is not valid');

Get Action

    ->action();

Get Errors

    ->errors();

Get ErrorMessage

    ->errorMessage();