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

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

abstractrs/url-shortener
========================

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

2.0.1(6y ago)046MITPHP

Since Jan 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/abstractrs/url-shortener)[ Packagist](https://packagist.org/packages/abstractrs/url-shortener)[ RSS](/packages/abstractrs-url-shortener/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (15)Used By (0)

Laravel 5 url shortener
=======================

[](#laravel-5-url-shortener)

[![Total Downloads](https://camo.githubusercontent.com/1f871ce4e56d5ef9d12642867b726fc95597986525868648faf6829e7baaa738/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77616176692f75726c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/abstractrs/url-shortener)

Introduction
------------

[](#introduction)

URL shortener package that gives a convenient Laravel Facade for [mremi/UrlShortener](https://github.com/mremi/UrlShortener)

Laravel compatibility
---------------------

[](#laravel-compatibility)

Laraveltranslation5.1.x1.0.x5.2.x1.0.1 and higher5.5.x1.0.7 and higher5.8.x2.0 and higherInstallation and Setup
----------------------

[](#installation-and-setup)

Require through composer

```
composer require abstractrs/url-shortener

```

Or manually edit your composer.json file:

```
"require": {
    abstractrs/url-shortener": "^2.0"
}

```

In config/app.php, add the following entry to the end of the providers array:

```
Abstractrs\UrlShortener\UrlShortenerServiceProvider::class,

```

And the following alias:

```
'UrlShortener' => Abstractrs\UrlShortener\Facades\UrlShortener::class,

```

Publish the configuration file, the form view and the language entries:

```
php artisan vendor:publish --provider="Abstractrs\UrlShortener\UrlShortenerServiceProvider"

```

Check the config files for the environment variables you need to set for the selected driver.

Usage
-----

[](#usage)

### Shorten a url

[](#shorten-a-url)

```
```php
\UrlShortener::shorten('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->shorten('http://google.com');
```

```

### Expand a url

[](#expand-a-url)

```
```php
\UrlShortener::expand('http://google.com'); // Uses default driver as per config settings
\UrlShortener::driver('bitly')->expand('http://google.com');
```

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~94 days

Recently: every ~0 days

Total

14

Last Release

2553d ago

Major Versions

1.0.11 → 2.02019-05-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2887620?v=4)[Mikica Ivosevic](/maintainers/mikicaivosevic)[@mikicaivosevic](https://github.com/mikicaivosevic)

---

Top Contributors

[![sildraug](https://avatars.githubusercontent.com/u/767887?v=4)](https://github.com/sildraug "sildraug (2 commits)")[![abstractmikica](https://avatars.githubusercontent.com/u/34841091?v=4)](https://github.com/abstractmikica "abstractmikica (1 commits)")[![MauroB45](https://avatars.githubusercontent.com/u/7325571?v=4)](https://github.com/MauroB45 "MauroB45 (1 commits)")

---

Tags

urllaravelshortenerurl shortenerwaaviurl short

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[waavi/url-shortener

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

64178.1k](/packages/waavi-url-shortener)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[vinelab/url-shortener

URL shortening the easy way.

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

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)

PHPackages © 2026

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