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

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

madeny/url-shortener
====================

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

54122PHPCI failing

Since Nov 17Pushed 6y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5.5 url shortener
=========================

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

Smattering
----------

[](#smattering)

URL shortener package with Laravel Package Auto-Discovery.

Installation and Setup
----------------------

[](#installation-and-setup)

Require through composer

```
composer require madeny/url-shortener

```

Or manually edit your composer.json file:

```
"require": {
    "madeny/url-shortener": "1.0"
}

```

Config: .env to have this for bitly driver:

```
URL_SHORTENER_BITLY_USERNAME=username
URL_SHORTENER_BITLY_PASSWORD=password

```

for google driver:

```
URL_SHORTENER_GOOGLE_API_KEY=apikey

```

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46306faa5b7866c7ea88fcfb1a0cfc7d279fbee0fdbdc57149c1c82b206f2262?d=identicon)[madeny](/maintainers/madeny)

---

Top Contributors

[![madeny](https://avatars.githubusercontent.com/u/7504281?v=4)](https://github.com/madeny "madeny (1 commits)")

---

Tags

composer-packagelaravel-5-packagemadenyphpphp-libraryurl-shortener

### Embed Badge

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

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

###  Alternatives

[bitpoke/stack-mu-plugin

WordPress must-use plugin for Stack

1219.5k](/packages/bitpoke-stack-mu-plugin)

PHPackages © 2026

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