apinstein/expiring-hash
最新稳定版本:v0.0.2
Composer 安装命令:
composer require apinstein/expiring-hash
包简介
A utililty to easily create crypographically signed URLs for temporary ad-hoc URL access.
关键字:
README 文档
README
ExpiringHash
Small helper class to create a URL parameter containing a tamper-proof expiration date.
This allows you to implement expiring URLs in the same way that Amazon S3 supports.
// create $eh = new ExpiringHash('my secret'); $hash = $eh->generate("15 minutes"); $url = "http://foo.com/mydownload?hash={$hash}"; // verify $eh = new ExpiringHash('my secret'); $okToDownload = $eh->validate($_GET['hash']);
统计信息
- 总下载量: 34.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-12