michalsn/codeigniter-signed-url
最新稳定版本:v2.1.0
Composer 安装命令:
composer require michalsn/codeigniter-signed-url
包简介
Signing URL functionality for CodeIgniter 4 framework
README 文档
README
Prevent manual URL manipulation and auto expiry URLs.
Installation
composer require michalsn/codeigniter-signed-url
Overview
We can sign URLs very easy with two main methods that act similar to the helper functions known from CodeIgniter's URL helper.
echo signedurl()->siteUrl('controller/method?query=string'); // https://example.com/controller/method?query=string&signature=signature-goes-here
echo signedurl()->setExpiration(DAY * 2)->urlTo('namedRoute', 12); // https://example.com/route/name/12?expiration=1671980371&signature=signature-goes-here
Versions
Versions are not compatible - URLs generated in one version of Signed URL will not work with another version.
| CodeIgniter version | Signed URL version |
|---|---|
>= 4.4 |
2.* |
< 4.4 |
1.* |
Docs
统计信息
- 总下载量: 3.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-27