Welcome Guest, Not a member yet? Register   Sign In
Signed URLs for CodeIgniter 4
#1

This library generates and validates signed URLs, ensuring secure and temporary access (optionally) to resources while preventing URL manipulation.

GitHub Repository: codeigniter-signed-url

Installation:
Code:
composer require michalsn/codeigniter-signed-url

Example Usage:
PHP Code:
service('signedurl')->siteUrl('controller/method');
// will generate URL similar to:
// https://example.com/controller/method?query=string&signature=signature-goes-here
// or

service('signedurl')->setExpiration(HOUR)->urlTo('namedRoute''param');
// will generate URL similar to:
// https://example.com/route/name/12?expiration=1671980371&signature=signature-goes-here 

It comes with a filter to easily validate the signed URL.

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


Messages In This Thread
Signed URLs for CodeIgniter 4 - by michalsn - 12-31-2024, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB