2017 © Pedro Peláez
 

library mtriv

A PHP package mainly developed for Laravel to verfy simply.

image

sukohi/mtriv

A PHP package mainly developed for Laravel to verfy simply.

  • Tuesday, January 31, 2017
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Mtriv

A PHP package mainly developed for Laravel to verify simply.
(This is for Laravel 5+. For Laravel 4.2), (*1)

Installation

Add this package name in composer.json, (*2)

"require": {
  "sukohi/mtriv": "2.*"
}

Execute composer command., (*3)

composer update

Register the service provider in app.php, (*4)

'providers' => [
    ...Others...,  
    Sukohi\Mtriv\MtrivServiceProvider::class,
]

Also alias, (*5)

'aliases' => [
    ...Others...,  
    'Mtriv'   => Sukohi\Mtriv\Facades\Mtriv::class
]

Usage

At first generate public key using secret key, string and expiration(skippable) like the following., (*6)

$str = 'STRING, ID and so on...';
$expiration = time(); // Skippable
$public_key = \Mtriv::secretKey('SECRET_KEY')->publicKey($str, $expiration);

and then you can verify., (*7)

if(\Mtriv::secretKey('SECRET_KEY')->check($str, $public_key, $expiration)) {

    echo 'success!';

}

License

This package is licensed under the MIT License., (*8)

Copyright 2014 Sukohi Kuhoh, (*9)

The Versions

31/01 2017

2.0.x-dev

2.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

31/01 2017

dev-master

9999999-dev

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

31/01 2017

2.0.1

2.0.1.0

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.1

1.0.1.0

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

The Requires

 

by Avatar Sukohi

11/08 2015

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

11/08 2015

1.0.0

1.0.0.0

A PHP package mainly developed for Laravel to verfy simply.

  Sources   Download

The Requires

 

by Avatar Sukohi