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

ActiveProject

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

url shortener

2.2.1(4mo ago)045MITPHPPHP ^8.3

Since Mar 30Pushed 4mo 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 1mo ago

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

40

—

FairBetter than 88% of packages

Maintenance77

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~71 days

Total

13

Last Release

126d 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

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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