2017 © Pedro Peláez
 

library temporal

Laravel 5 package to create temporal url resources

image

ericlagarda/temporal

Laravel 5 package to create temporal url resources

  • Tuesday, May 3, 2016
  • by Krato1
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Temporal Tokens for Laravel

This package generates temporary tokens to use with your models, urls, controllers or whatever you want., (*1)

Installation

Use composer to install:, (*2)

composer require ericlagarda/temporal

Add provider to your config/app.php, (*3)

EricLagarda\Temporal\TemporalServiceProvider::class

Temporal facade is automatically registered as an alias for EricLagarda\Temporal\Facades\Temporal class., (*4)

How to use

You have two helpers to create and recieve temporal urls., (*5)

To create your token just call create method:, (*6)

$myToken = Temporal::create($modelId, $expireTime); //$expireTime in minutes to expire

To decrypt this token and check if is valid, you can use check method:, (*7)

$isValid = Temporal::check($token); //$token appended to url

Method check will return false in case token is invalid. Or object with id, expires, created_at if is valid., (*8)

License

The MIT License (MIT)., (*9)

The Versions

03/05 2016

dev-master

9999999-dev

Laravel 5 package to create temporal url resources

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel temporal

03/05 2016

1.0

1.0.0.0

Laravel 5 package to create temporal url resources

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel temporal