Download the PHP package ucarsolutions/uri-signer without Composer
On this page you can find all versions of the php package ucarsolutions/uri-signer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ucarsolutions/uri-signer
More information about ucarsolutions/uri-signer
Files in ucarsolutions/uri-signer
Package uri-signer
Short Description A minimal package for securely signing PSR-15 URIs in PHP applications.
License MIT
Informations about the package uri-signer
URL Signer for Vanilla PHP
A URL signer implementation in PHP that generates secure, signed URLs with an expiration date. This package allows you to sign full URLs or just query parameters, adding a layer of security for accessing resources or sharing sensitive information.
Features
- Sign a given URI
- Include an expiration date as part of the signature
- Ensure URL integrity and prevent unauthorized modifications
- Easy integration with Laminas or other PHP-based frameworks
Installation
Install the package via Composer:
Usage
Sign URL with Expiration Date
You can sign the uri with:
Example Verifying with $uri
above:
Expiration
The expiration date is added to the signature and is included in the signed data to ensure the URL becomes invalid after the expiration time.
If no expiration date is provided, a default of 3 minutes from the current time is used.
Configuration
You can configure the expiration time and the secret key for signing URLs.
Tests
Run the tests with PHPUnit:
Contributing
Contributions are welcome! Please submit a pull request or open an issue for any suggestions or bug reports.
Contribution Guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Write tests for your changes.
- Make sure all tests pass.
- Submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
All versions of uri-signer with dependencies
firebase/php-jwt Version ^6.10
ramsey/uuid Version ^4.7
doganoo/di-services Version ^0.0.50
psr/log Version ^3.0