PHPackages                             gallib/laravel-short-url - 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. gallib/laravel-short-url

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

gallib/laravel-short-url
========================

A Laravel package to shorten urls

1.9.0(4y ago)16516.4k—6.7%37[1 PRs](https://github.com/gallib/laravel-short-url/pulls)MITPHPPHP ^8.0

Since Feb 23Pushed 3y ago5 watchersCompare

[ Source](https://github.com/gallib/laravel-short-url)[ Packagist](https://packagist.org/packages/gallib/laravel-short-url)[ RSS](/packages/gallib-laravel-short-url/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (19)Used By (0)

 [![Laravel Short URL logo](https://raw.githubusercontent.com/gallib/laravel-short-url/master/assets/images/logo.png)](https://raw.githubusercontent.com/gallib/laravel-short-url/master/assets/images/logo.png)

Laravel Short Url [![Build Status](https://camo.githubusercontent.com/85b3e4ca24c0d818a49015b3efd1db9fa9772b185eb3684ed1d014dbc0a2a232/68747470733a2f2f7472617669732d63692e6f72672f67616c6c69622f6c61726176656c2d73686f72742d75726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gallib/laravel-short-url) [![StyleCI](https://camo.githubusercontent.com/d24934eed22953e79060fccbb196e4a5c99e6a39427caa0cd1acce7e2feec689/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132323632393533312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/122629531)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#laravel-short-url--)

Laravel Short Url is a package allowing you to shorten urls.

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

[](#installation)

With composer

```
composer require gallib/laravel-short-url

```

then run

```
php artisan vendor:publish --provider="Gallib\ShortUrl\ShortUrlServiceProvider"
php artisan migrate

```

finally, paste `ShortUrl::routes();` at the end of `routes/web.php`

Configuration
-------------

[](#configuration)

Laravel Short Url configuration file can be found on `config/shorturl.php`

- **blacklist** : Allows to blacklist urls. Keywords can be either an url, a keyword or an extension

### Advanced configuration

[](#advanced-configuration)

Instead of adding `ShortUrl::routes();` you can call three separates methods:

- `ShortUrl::createRoutes();` to shorten urls
- `ShortUrl::manageRoutes();` to manage urls
- `ShortUrl::redirectRoute();` to redirect to the url

this allows you to add middlewares or prefix routes.

### Migration Customization

[](#migration-customization)

If you are not going to use Short Url's default migrations, you should call the `ShortUrl::ignoreMigrations();` method in the `register` method of your `AppServiceProvider`. You may export the default migrations using

```
php artisan vendor:publish --tag=shorturl-migrations

```

Nice!
-----

[](#nice)

Laravel short url is now set up on your homepage.

Credits
-------

[](#credits)

- Created by [Alain](https://twitter.com/gallib_net)
- Logo by [Caneco](https://twitter.com/caneco)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 94.8% 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 ~92 days

Recently: every ~123 days

Total

17

Last Release

1527d ago

PHP version history (5 changes)1.5.0PHP ^7.2

1.6.0PHP ^7.2.5

1.7.1PHP ^7.2.5|^8.0.0

1.8.0PHP ^7.3.0|^8.0.0

1.9.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cebc5cfc7f6d121721969cbad9f6e61c90a95c7765d9a0e660ef548844921c5?d=identicon)[Gallib](/maintainers/Gallib)

---

Top Contributors

[![gallib](https://avatars.githubusercontent.com/u/296307?v=4)](https://github.com/gallib "gallib (109 commits)")[![pedrosancao](https://avatars.githubusercontent.com/u/5047991?v=4)](https://github.com/pedrosancao "pedrosancao (2 commits)")[![caneco](https://avatars.githubusercontent.com/u/502041?v=4)](https://github.com/caneco "caneco (1 commits)")[![ClaraLeigh](https://avatars.githubusercontent.com/u/2524209?v=4)](https://github.com/ClaraLeigh "ClaraLeigh (1 commits)")[![hernandev](https://avatars.githubusercontent.com/u/1143355?v=4)](https://github.com/hernandev "hernandev (1 commits)")[![YasuakiHirano](https://avatars.githubusercontent.com/u/7723046?v=4)](https://github.com/YasuakiHirano "YasuakiHirano (1 commits)")

---

Tags

laravellaravel-packagelaravel9packageshorten-urlsshortenerurlurl-shortenerurllaravelpackageshortener

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gallib-laravel-short-url/health.svg)

```
[![Health](https://phpackages.com/badges/gallib-laravel-short-url/health.svg)](https://phpackages.com/packages/gallib-laravel-short-url)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)

PHPackages © 2026

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