PHPackages                             laravel-ready/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. laravel-ready/url-shortener

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

laravel-ready/url-shortener
===========================

Simple URL shortener for laravel apps

v1.2.15(2y ago)2417↑100%1MITPHPPHP ^8.1 || ^8.0

Since Mar 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/laravel-ready/url-shortener)[ Packagist](https://packagist.org/packages/laravel-ready/url-shortener)[ RSS](/packages/laravel-ready-url-shortener/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (12)Versions (26)Used By (0)

UrlShortener
============

[](#urlshortener)

[![UrlShortener](https://camo.githubusercontent.com/6f6fc197c9fbddaa1a26fb86438dcb8e9d5295edf8eed2c9ad7faf8df4fdde64/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f4c61726176656c52656164792f75726c2d73686f7274656e65722e7376673f6272616e643d6c61726176656c)](https://github.com/laravel-ready/url-shortener)

[![Stable Version](https://camo.githubusercontent.com/e3954b139b9fa44458cf8dd8961fb9b913b9739b463c697d94a1eb171d8de79b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61726176656c2d72656164792f75726c2d73686f7274656e65723f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/url-shortener)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/url-shortener)[![Total Downloads](https://camo.githubusercontent.com/5410cd89ab5c6bc17b5ebbc757ccb7ff9db53548976ab2c9885579c31dacca47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d72656164792f75726c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/url-shortener)[![License](https://camo.githubusercontent.com/594aba7dcff3a87f982f43d03a1f1bac552402366ecaa98c3a40f330e2c1ed0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c61726176656c2d72656164792f75726c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📂 About
-------

[](#-about)

URL shortener for Laravel apps...

📦 Installation
--------------

[](#-installation)

Get via composer

```
composer require laravel-ready/url-shortener
```

⚙️ Configs
----------

[](#️-configs)

```
php artisan vendor:publish --tag=url-shortener-config
```

🏗️ Migrations
-------------

[](#️-migrations)

```
# publish migrations
php artisan vendor:publish --tag=url-shortener-migrations

# apply migrations
php artisan migrate --path=/database/migrations/laravel-ready/url-shortener
```

📝 Usage
-------

[](#-usage)

```
use LaravelReady\UrlShortener\Enums\ShortingType;
use LaravelReady\UrlShortener\Supports\UrlShortener;

$shortUrl = UrlShortener::shortUrl(
    'https://github.com/laravel-ready/url-shortener',
    [
        'title' => 'TEST TITLE',
        'description' => 'Lorem ipsum dolar amet',
    ],
    ShortingType::Emoji
);
```

### CreateShortUrlRequest

[](#createshorturlrequest)

To see all validation rules, see the [CreateShortUrlRequest](src/Http/Requests/CreateShortUrlRequest.php#L22) class.

```
use LaravelReady\UrlShortener\Requests\CreateShortUrlRequest;

class ShortUrlController extends Controller
{
    public function store(CreateShortUrlRequest $request)
    {
        $validateData = $request->validated();

        $shortUrl = UrlShortener::shortUrl(
            $validateData['url'],
            $validateData['meta'] ?? [],
            $validateData['type'] ?? ShortingType::Random
        );
    }
}
```

🔗 Postman
---------

[](#-postman)

You can reach postman examples [here](https://www.postman.com/kor-url-shortener/workspace/url-shortener-package-api).

⚓ Credits
---------

[](#-credits)

- This project was generated by the **[packager](https://github.com/laravel-ready/packager)**.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

24

Last Release

913d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

urllaravelshortenerurl shortener

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laravel-ready-url-shortener/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[waavi/url-shortener

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

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

Powerful URL shortening tools in Laravel

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

A Laravel package to shorten urls

16516.8k](/packages/gallib-laravel-short-url)[vinelab/url-shortener

URL shortening the easy way.

5917.2k](/packages/vinelab-url-shortener)

PHPackages © 2026

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