PHPackages                             mactape/short-links - 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. mactape/short-links

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

mactape/short-links
===================

url shortener

2.2.1(5mo ago)045MITPHPPHP ^8.3

Since Mar 30Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/yulchurin/short-links)[ Packagist](https://packagist.org/packages/mactape/short-links)[ RSS](/packages/mactape-short-links/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (2)Versions (14)Used By (0)

### Url Shortener

[](#url-shortener)

- Laravel `^10.0`, `^11.0` or `^12.0`
- PHP `^8.3`

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

[](#installation)

You can install the package via composer:

```
composer require mactape/short-links
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="short-links-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="short-links-config"
```

configure in `config/short-links.php`

domain -&gt; your application domain

expiration (default 12) integer in hours. Model will be pruned

### Usage

[](#usage)

create hash for url

```
$hash = ShortURL::generate('https://your-url-to-shorten');
```

now you can use like

```
return ShortURL::open($hash);
```

*or navigate to* `https://your-application-domain/s/{hash}`

Add to

`\App\Console\Kernel` `schedule` method if you use Laravel 10

```
$schedule->command('model:prune')->daily();
```

Or

```
Schedule::command('model:prune')->daily();
```

in your application's `routes/console.php` if you use Laravel &gt;= 11

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance70

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~24 days

Recently: every ~71 days

Total

13

Last Release

172d ago

Major Versions

0.1.1 → 01.22025-03-30

1.1 → 2.0.02025-03-30

### Community

Maintainers

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

---

Top Contributors

[![yulchurin](https://avatars.githubusercontent.com/u/53298305?v=4)](https://github.com/yulchurin "yulchurin (14 commits)")

---

Tags

short-linksmactape

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mactape-short-links/health.svg)

```
[![Health](https://phpackages.com/badges/mactape-short-links/health.svg)](https://phpackages.com/packages/mactape-short-links)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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