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

ActiveLibrary

djordjevicmladen/url-shortener
==============================

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

2.0(6y ago)081MITPHP

Since Jan 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/djordjevicmladen/url-shortener)[ Packagist](https://packagist.org/packages/djordjevicmladen/url-shortener)[ RSS](/packages/djordjevicmladen-url-shortener/feed)WikiDiscussions master Synced 2mo ago

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

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

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

[![Total Downloads](https://camo.githubusercontent.com/1f871ce4e56d5ef9d12642867b726fc95597986525868648faf6829e7baaa738/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77616176692f75726c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/djordjevicmladen/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 djordjevicmladen/url-shortener

```

Or manually edit your composer.json file:

```
"require": {
    djordjevicmladen/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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~102 days

Recently: every ~2 days

Total

13

Last Release

2553d ago

Major Versions

1.0.11 → 2.02019-05-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a370b5d94993a202353dfc8c88c4aacfd35e050f56c54db3b6381f17e67ac20?d=identicon)[djordjevicmladen](/maintainers/djordjevicmladen)

---

Top Contributors

[![sildraug](https://avatars.githubusercontent.com/u/767887?v=4)](https://github.com/sildraug "sildraug (2 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/djordjevicmladen-url-shortener/health.svg)

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

###  Alternatives

[waavi/url-shortener

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

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

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[yorcreative/laravel-urlshortener

A laravel url shortener package that provides internal url redirects with passwords, url expirations, open limits before expiration and click tracking out of the box.

12011.0k](/packages/yorcreative-laravel-urlshortener)[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)
