PHPackages                             ucarsolutions/uri-signer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ucarsolutions/uri-signer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ucarsolutions/uri-signer
========================

A minimal package for securely signing PSR-7 URIs in PHP applications.

2.0.2(7mo ago)253261MITPHPCI passing

Since Sep 10Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Ucar-Solutions/uri-signer)[ Packagist](https://packagist.org/packages/ucarsolutions/uri-signer)[ RSS](/packages/ucarsolutions-uri-signer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (8)Versions (8)Used By (1)

URL Signer for Vanilla PHP
==========================

[](#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.

[![Build Status](https://github.com/Ucar-Solutions/uri-signer/workflows/Run%20Unit%20Tests/badge.svg)](https://github.com/Ucar-Solutions/uri-signer/workflows/Run%20Unit%20Tests/badge.svg)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)

Features
--------

[](#features)

- Sign a given URI or an array of parameters
- 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
------------

[](#installation)

Install the package via Composer:

```
composer require ucarsolutions/uri-signer
```

Usage
-----

[](#usage)

### Sign URL with Expiration Date

[](#sign-url-with-expiration-date)

You can sign the uri with:

```
