PHPackages                             div-art/shortlink - 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. div-art/shortlink

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

div-art/shortlink
=================

A Laravel 5.5 shortener package

0.2.4(7y ago)411.3k1MITPHPPHP &gt;=7.0

Since Jan 12Pushed 7y ago4 watchersCompare

[ Source](https://github.com/Div-Art/ShortLink)[ Packagist](https://packagist.org/packages/div-art/shortlink)[ RSS](/packages/div-art-shortlink/feed)WikiDiscussions master Synced 3d ago

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

ShortLink
=========

[](#shortlink)

Short Link package for Laravel 5.5

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

[](#installation)

To install, run the following in your project directory:

```
$ composer require div-art/shortlink
```

Then in `config/app.php` add the following to the `providers` array:

```
\DivArt\ShortLink\ShortLinkServiceProvider::class,

```

Also in `config/app.php`, add the Facade class to the `aliases` array:

```
'ShortLink' => \DivArt\ShortLink\Facades\ShortLink::class,

```

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

[](#configuration)

To publish ShortLink's configuration file, run the following `vendor:publish` command:

```
php artisan vendor:publish --provider="DivArt\ShortLink\ShortLinkServiceProvider"

```

This will create a shortlink.php in your config directory. Here you must enter your Shortener URL API Key.

Usage
-----

[](#usage)

**Be sure to include the namespace for the class wherever you plan to use this library**

```
use DivArt\ShortLink\Facades\ShortLink;

```

To shorten a URL:

```
$url = "https://www.google.com";

ShortLink::google($url);

// return https://goo.gl/Njku
```

To get stats of clicks on shortened URL:

```
$url = https://goo.gl/Njku;

ShortLink::clicks($url);
```

Methods
-------

[](#methods)

```
ShortLink::google(); // return shortener url like goo.gl/XXXXXX

ShortLink::bitly(); // return shortener url like bit.ly/XXXXXX

ShortLink::rebrandly(); // return shortener url like rebrand.ly/XXXXXX

ShortLink::clicks(); // return count of clicks on a shortener url

ShortLink::expand(); // return long url
```

Services
--------

[](#services)

[goo.gl](https://developers.google.com/url-shortener/)

[bit.ly](https://dev.bitly.com/)

[rebrand.ly](https://developers.rebrandly.com/)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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 ~16 days

Recently: every ~63 days

Total

17

Last Release

2787d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94e9a89ed1ea3310a064b240c8741c0e05f808c00c747a9540c2373bfb40e926?d=identicon)[div-art](/maintainers/div-art)

---

Top Contributors

[![godenys](https://avatars.githubusercontent.com/u/25030031?v=4)](https://github.com/godenys "godenys (26 commits)")[![IevgeniiDomanskyi](https://avatars.githubusercontent.com/u/3128768?v=4)](https://github.com/IevgeniiDomanskyi "IevgeniiDomanskyi (5 commits)")[![godenis](https://avatars.githubusercontent.com/u/20045029?v=4)](https://github.com/godenis "godenis (1 commits)")

---

Tags

laravelshortlinkdiv-art

### Embed Badge

![Health badge](/badges/div-art-shortlink/health.svg)

```
[![Health](https://phpackages.com/badges/div-art-shortlink/health.svg)](https://phpackages.com/packages/div-art-shortlink)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

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