michalsn/codeigniter-signed-url 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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.

PHPUnit PHPStan Deptrac Coverage Status

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

https://michalsn.github.io/codeigniter-signed-url

统计信息

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

GitHub 信息

  • Stars: 17
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-27