2017 © Pedro Peláez
 

library wp_nonce_oop

Wordpress Nonce OOP Implementation

image

manuel-rod/wp_nonce_oop

Wordpress Nonce OOP Implementation

  • Tuesday, May 15, 2018
  • by manuelRod
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

WP_Nonce_OOP

Wordpress Nonce OOP Implementation. Just an OOP wrap., (*1)

Installation

$ composer require manuel-rod/wp_nonce_oop

Usage

$nonce = new WP_Nonce('wp_action_nonce');

Public methods

$nonce->createNonce()
$nonce->verifyNonce($nonce)
$nonce->nonceField($name = '_wpnonce', $referrer = true, $echo = true)
$nonce->nonceUrl($url, $name = '_wpnonce')
$nonce->checkAdminReferer($name = '_wpnonce')
$nonce->checkAjaxReferer($name = false, $die = true)

Testing (phpunit)

Copy phpunit.xml.dist to phpunit.xml and modify to your needs., (*2)

$ cd vendor/manuelRod/WP_Nonce_OOP
$ composer install
$ vendor/bin/phpunit

Licence

MIT, (*3)

The Versions

15/05 2018

dev-master

9999999-dev https://github.com/manuelRod/WP_Nonce_OOP

Wordpress Nonce OOP Implementation

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

by Manuel Rodriguez

wordpress oop wp_nonce

15/05 2018

1.0.1

1.0.1.0 https://github.com/manuelRod/WP_Nonce_OOP

Wordpress Nonce OOP Implementation

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

by Manuel Rodriguez

wordpress oop wp_nonce

15/05 2018

1.0.0

1.0.0.0 https://github.com/manuelRod/WP_Nonce_OOP

Wordpress Nonce OOP Implementation

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

by Manuel Rodriguez

wordpress oop wp_nonce