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

Abandoned → [leadthread/laravel-shortener](/?search=leadthread%2Flaravel-shortener)Library

zenapply/laravel-shortener
==========================

6.0.1(9y ago)52.5k2MITPHPPHP ^5.4|^7.0

Since Apr 4Pushed 4y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

laravel-shortener
=================

[](#laravel-shortener)

[![Latest Version](https://camo.githubusercontent.com/e912caabb301fb60dc80d83bdd5728f214150c22a11af7535934c601c99b0d59/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c6561647468726561642f6c61726176656c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/leadthread/laravel-shortener/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5e41f20a7df31001eab5bc78f1e6a87d1adc18cebc3d0affdc18f055d7fcf4e7/68747470733a2f2f7472617669732d63692e6f72672f6c6561647468726561642f6c61726176656c2d73686f7274656e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leadthread/laravel-shortener)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fa1c8e287f38596f4cf7b2e0059c7d992d4e17a74e3436d466d52acbecfe2264/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f6c61726176656c2d73686f7274656e65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/laravel-shortener/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ee2e896378e57ce50e18b5e65c06e1e851a7eb94f6dae98845eaf2429e932361/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f6c61726176656c2d73686f7274656e65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/laravel-shortener/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/1c4ac926efb90f2924bb989040a5bf7eedb5476ed59563195a7d1ed8141ed7fb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536663332353263333536333065303032396462303138372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56f3252c35630e0029db0187)[![Total Downloads](https://camo.githubusercontent.com/3963a2d11e682cbbca650553aa32a386e5f75d8e8aa01b0954bc63cb3149502d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6561647468726561642f6c61726176656c2d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leadthread/laravel-shortener)

Laravel Shortener is a simple package for shortening URL's through various online services.

Currently supported:

- [Bitly](https://bitly.com/)
- [Google](https://developers.google.com/url-shortener/)

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

[](#installation)

Install via [composer](https://getcomposer.org/) - In the terminal:

```
composer require leadthread/laravel-shortener
```

Now add the following to the `providers` array in your `config/app.php`

```
LeadThread\Shortener\ShortenerServiceProvider::class
```

and this to the `aliases` array in `config/app.php`

```
"Shortener" => "LeadThread\Shortener\Facades\Shortener",
```

Then you will need to run these commands in the terminal in order to copy the config file

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

First you must change your config file located at `config/shortener.php` with your API credentials Then you can simply shorten a URL like this:

```
$url = "https://github.com/leadthread/laravel-shortener";
$shortUrl = Shortener::shorten($url);
// (string) http://bit.ly/2amWdrE
```

Laravel Shortener also takes advantage or Laravel's caching features. Just simply edit your config file to change the caching variables.

Dont forget to add this to the top of the file

```
//If you updated your aliases array in "config/app.php"
use Shortener;
//or if you didnt...
use LeadThread\Shortener\Facades\Shortener;
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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

Recently: every ~82 days

Total

11

Last Release

3310d ago

Major Versions

1.0.2 → 2.0.02016-05-11

2.0.1 → 3.0.02016-05-12

3.0.0 → 4.0.02016-05-27

4.0.0 → 5.0.02016-08-01

5.0.1 → 6.0.02017-04-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d0f17a08e8038aafdd451317206dda9429dfda2c7cbadb0c0796e25367108d5?d=identicon)[tylercd100](/maintainers/tylercd100)

---

Top Contributors

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

---

Tags

urllaravelshortenerurl shortenertylercd100leadthread

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[waavi/url-shortener

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

64178.1k](/packages/waavi-url-shortener)[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)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)[laravel-validation-rules/phone

Validate that a phone number is in the correct format

69355.5k](/packages/laravel-validation-rules-phone)[mbarwick83/shorty

Google Url Shortener API Package for Laravel 5.1

31204.9k](/packages/mbarwick83-shorty)

PHPackages © 2026

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