PHPackages                             actinity/signed-urls - 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. actinity/signed-urls

ActiveLibrary[Security](/categories/security)

actinity/signed-urls
====================

Signs and validates URLs with public/private keys

2.1.2(1w ago)03.6kMITPHPPHP ^8.2

Since May 17Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/Actinity/signed-urls)[ Packagist](https://packagist.org/packages/actinity/signed-urls)[ RSS](/packages/actinity-signed-urls/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (12)Used By (0)

Signed Urls
===========

[](#signed-urls)

A library for signing and validating short-lived, one-time URLs using public and private keys. Designed for Laravel, but can be used elsewhere.

Evolved from `twogether/laravel-url-signer`

Installation with Laravel
-------------------------

[](#installation-with-laravel)

`composer require actinity/signed-urls`

`php artisan vendor:publish --provider="Actinity\SignedUrls\Laravel\SignedUrlServiceProvider"`

`php artisan actinity:generate-key-pair`

The last command will give you a public and private key pair. Add the private key to your .env file.

```
SIGNED_URLS_PRIVATE_KEY=
```

Configuring
-----------

[](#configuring)

Every app that you will be communicating between needs a `source_name`. By default this is `Str::slug(config('app.name'))` but you can explicitly set it in `config/signed_urls.php`.

Also in that config file you'll see a `public_keys` array. This is where you can add the public keys for apps that will make requests. So if you have an app called `dashboard`, you would configure `'source_name' =>  'dashboard'`. If that needs to make signed requests to an app called `reports`, then in that reports app you would configure it like this:

```
    'source_name' => 'reports',
    'public_keys' => [
        'dashboard' =>
    ]
```

The `source_name` parameter from your config will be added to every generated URL as `ac_sc`. For more complex logic when resolving a key to validate, you can implement `Actinity\SignedUrls\Contracts\KeyProvider`and specify that in the config.

Generating URLs
---------------

[](#generating-urls)

To generate a signed URL, get the service from the service container, likely through injection.

```
$service = app(\Actinity\SignedUrls\SignedUrlService::class);
$url = $service->sign('https://www.example.com');
```

Validating URLs
---------------

[](#validating-urls)

To validate a signed URL:

```
$service = app(\Actinity\SignedUrls\SignedUrlService::class);
try {
    $service->validate($request->fullUrl());
} catch(\Actinity\SignedUrls\Exceptions\InvalidSignedUrl $exception) {
    dd($exception->errors());
}
```

You can also just use `Actinity\SignedUrls\Laravel\SignedUrlMiddleware`.

###  Health Score

46

↑

FairBetter than 92% of packages

Maintenance85

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~40 days

Total

11

Last Release

7d ago

Major Versions

1.3 → 2.02026-02-18

### Community

Maintainers

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

---

Top Contributors

[![Actinity](https://avatars.githubusercontent.com/u/1878605?v=4)](https://github.com/Actinity "Actinity (12 commits)")

### Embed Badge

![Health badge](/badges/actinity-signed-urls/health.svg)

```
[![Health](https://phpackages.com/badges/actinity-signed-urls/health.svg)](https://phpackages.com/packages/actinity-signed-urls)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[binaryk/laravel-restify

Laravel REST API helpers

677415.0k](/packages/binaryk-laravel-restify)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

180124.1k](/packages/erag-laravel-pwa)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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