PHPackages                             clickbar/laravel-validate-relative-signature - 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. [Security](/categories/security)
4. /
5. clickbar/laravel-validate-relative-signature

AbandonedArchivedLibrary[Security](/categories/security)

clickbar/laravel-validate-relative-signature
============================================

Middleware for validating relative signed url requests.

1.0.1(6y ago)043MITPHPPHP ^7.2

Since Aug 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/clickbar/laravel-validate-relative-signature)[ Packagist](https://packagist.org/packages/clickbar/laravel-validate-relative-signature)[ Docs](https://github.com/clickbar/laravel-validate-relative-signature)[ RSS](/packages/clickbar-laravel-validate-relative-signature/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Verify signed URLs with a relative URL
======================================

[](#verify-signed-urls-with-a-relative-url)

[![Latest Version on Packagist](https://camo.githubusercontent.com/37920f3e4daf8d15a5642d1e847bb60326423741a6fd888141cb86188e637de4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c69636b6261722f6c61726176656c2d76616c69646174652d72656c61746976652d7369676e61747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/clickbar/laravel-validate-relative-signature)[![Build Status](https://camo.githubusercontent.com/c02364ed8e377065540e219e2de4d548915a7deafd5d927b513648ac5e08a247/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c69636b6261722f6c61726176656c2d76616c69646174652d72656c61746976652d7369676e61747572652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/clickbar/laravel-validate-relative-signature)[![Quality Score](https://camo.githubusercontent.com/7d53d4dd6433b9f7b38c6ef29a2e557aba272382f1f18040a746b9f5893647f2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c69636b6261722f6c61726176656c2d76616c69646174652d72656c61746976652d7369676e61747572652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/clickbar/laravel-validate-relative-signature)[![Total Downloads](https://camo.githubusercontent.com/6d5acc459dbee957be6d3f35e0248fab1e44cffbb1d2c6812617349fed90120b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c69636b6261722f6c61726176656c2d76616c69646174652d72656c61746976652d7369676e61747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/clickbar/laravel-validate-relative-signature)

In Laravel you can use the [signed middleware URL](https://laravel.com/docs/5.8/urls#signed-urls) to sign URLs for activation links etc.. There's also a undocumented relative parameter which makes it possible to sign **relative** URLs.

This is useful if you are using Laravel just as an API and host it somewhere else than your frontend. You can still use your pretty frontend URLs instead of those of the API.

e.g.: instead of signing `https://example.com/activate-email` you sign `/activate-email`.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require clickbar/laravel-validate-relative-signature
```

Usage
-----

[](#usage)

After installing the package is auto-discovered and you now have a `signed.relative` middleware to verify signed URLs with a relative URL.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adrian Hawlitschek](https://github.com/ahawlitschek)
- [Alexander von Studnitz](https://github.com/studnitz)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Total

2

Last Release

2439d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.0.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee7a6fef5c9d068bf5746468daca32ab5e67ccadf7e69b23a87392ec2b71df30?d=identicon)[studnitz](/maintainers/studnitz)

![](https://avatars.githubusercontent.com/u/53199186?v=4)[Adrian](/maintainers/ahawlitschek)[@ahawlitschek](https://github.com/ahawlitschek)

---

Top Contributors

[![studnitz](https://avatars.githubusercontent.com/u/9549394?v=4)](https://github.com/studnitz "studnitz (8 commits)")[![ahawlitschek](https://avatars.githubusercontent.com/u/53199186?v=4)](https://github.com/ahawlitschek "ahawlitschek (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clickbar-laravel-validate-relative-signature/health.svg)

```
[![Health](https://phpackages.com/badges/clickbar-laravel-validate-relative-signature/health.svg)](https://phpackages.com/packages/clickbar-laravel-validate-relative-signature)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9230.4M311](/packages/illuminate-encryption)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
