2017 © Pedro Peláez
 

library token

Random token manager for Laravel 5

image

nztim/token

Random token manager for Laravel 5

  • Sunday, March 20, 2016
  • by nztim
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Token

Manages random tokens for password resets and other one-time actions, (*1)

Installation

  • Add the service provider to config/app.php:
    • NZTim\Token\TokenServiceProvider::class,
  • Run php artisan token-pkg:migration then php artisan migrate to add the Token database table

Usage

  • Tokens are handled via NZTim\Token\TokenRepo, which can be instantiated by the container
  • Token parameters:
    • Reference: integer ID of the object referred to by the token, e.g. User ID
    • Type: string determining the type of the token
    • Expires: integer determining how many minutes the token will remain valid for, null (forever) is default
  • TokenRepo::new(int $ref, string $type, int $expires = null) returns a random 40-character code
  • TokenRepo::find(string $code, string $type) returns the reference ID or null if not found
  • TokenRepo::remove(string $code, string $type) deletes the token associated with the code (if found)

The Versions

20/03 2016

dev-master

9999999-dev

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

20/03 2016

v0.2.0

0.2.0.0

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

17/02 2016

v0.1.4

0.1.4.0

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

 

20/01 2016

v0.1.3

0.1.3.0

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

 

20/01 2016

v0.1.2

0.1.2.0

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

 

20/01 2016

v0.1.1

0.1.1.0

Random token manager for Laravel 5

  Sources   Download

MIT

The Requires

 

20/01 2016

v0.1.0

0.1.0.0

Simple queue package for Laravel 5

  Sources   Download

MIT

The Requires