PHPackages                             javi-solutions/url-shortener - 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. javi-solutions/url-shortener

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

javi-solutions/url-shortener
============================

URL shortener package for Laravel framework

v0.0.1(7y ago)08MITPHPPHP ^7.0

Since Mar 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/javi-solutions/url-shortener)[ Packagist](https://packagist.org/packages/javi-solutions/url-shortener)[ Docs](https://github.com/javi-solutions/url-shortener)[ RSS](/packages/javi-solutions-url-shortener/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

url-shortener
=============

[](#url-shortener)

Easy package that brings easy url shortening functionality to laravel framework.

Structure of the package is based on two easy models for url shortening and its visits - with migrations of two main tables.

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

[](#installation)

```
composer require javi-solutions/url-shortener
```

Settings
--------

[](#settings)

The package can be configurable trought appServiceProvider registration of class values.

### Turn off routes

[](#turn-off-routes)

If you want to use the package *without routes* add:

```
JaviSolutions\UrlShortener\UrlShortener::withoutRoutes();
```

to *register* method of your *AppServiceProvider*.

If you add other than Default route, use named route with name *urlShortening*.

### Customizing route prefix

[](#customizing-route-prefix)

If you want to *change prefix* of route add:

```
JaviSolutions\UrlShortener\UrlShortener::withPrefix('some-prefix');
```

to register method of your AppServiceProvider. Othervise the default prefix is */link/{id}*

If you want to *use redirect on route /{id}* pass null value in.

### Customizing observers

[](#customizing-observers)

If you want to *turn off default observers* of visit and shortening add:

```
JaviSolutions\UrlShortener\UrlShortener::withoutObservers();
```

to register method of your AppServiceProvider. Default observer of shortening adds user\_id to model data in creating method in case it is not set. Default observer of shortening visit adds ip and user agent to model data in creating method in case they are not set.

Seeding
-------

[](#seeding)

If you want to seed in your application use package seeders:

```
$this->call(JaviSolutions\UrlShortener\Database\Seeds\UrlShorteningSeeder::class);
$this->call(JaviSolutions\UrlShortener\Database\Seeds\UrlShorteningVisitSeeder::class);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

2654d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4374318398d94ff939adfffd11f7f4bfdaffbc9571eeffbe2d3b02ecdf7047d5?d=identicon)[info@javi.sk](/maintainers/info@javi.sk)

---

Top Contributors

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

---

Tags

urllaravelshortener

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javi-solutions-url-shortener/health.svg)

```
[![Health](https://phpackages.com/badges/javi-solutions-url-shortener/health.svg)](https://phpackages.com/packages/javi-solutions-url-shortener)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97112.0k](/packages/laracrafts-laravel-url-shortener)[waavi/url-shortener

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

64178.1k](/packages/waavi-url-shortener)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.8k](/packages/gallib-laravel-short-url)[tomshaw/electricgrid

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

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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