承接 ericlagarda/temporal 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ericlagarda/temporal

Composer 安装命令:

composer require ericlagarda/temporal

包简介

Laravel 5 package to create temporal url resources

README 文档

README

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

Installation

Use composer to install:

composer require ericlagarda/temporal

Add provider to your config/app.php

EricLagarda\Temporal\TemporalServiceProvider::class

Temporal facade is automatically registered as an alias for EricLagarda\Temporal\Facades\Temporal class.

How to use

You have two helpers to create and recieve temporal urls.

To create your token just call create method:

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

To decrypt this token and check if is valid, you can use check method:

$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.

License

The MIT License (MIT).

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固