PHPackages                             trendylabs/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. [API Development](/categories/api)
4. /
5. trendylabs/shortener

ActiveLaravel[API Development](/categories/api)

trendylabs/shortener
====================

API for Laravel 5 to get short URLs via Googl Shortener

1144[1 issues](https://github.com/TrendyLabs/Shortener/issues)PHP

Since Jan 20Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Shortener
=========

[](#shortener)

API Form Laravel 5 to convert long URLs in Google Shortener format

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/). Edit your project's `composer.json` file by adding:

```
"require": {
	"trendylabs/shortener": "dev-master"
}
```

Next, run the Composer update command from the Terminal:

```
composer update

```

Add the Service Provider. To do this open your `config/app.php` file.

Add a new line to the `service providers` array:

```
TrendyLabs\Shortener\ShortenerServiceProvider::class,

```

And a new line to the `aliases` array:

```
'Shortener' => TrendyLabs\Shortener\Facade::class,

```

Now you need to publish config file:

```
php artisan vendor:publish

```

Then you can edit your Google API Keys

Usage
-----

[](#usage)

Now you're ready to get short URLs via Googl Shortener:

```
// get short url
\Shortener::short($url);

// get Google response
\Shortener::response($url);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/48b2ba22d9926eaf283c38ddc171a174f301a01861d05106c989f9c355cf9abf?d=identicon)[vics80](/maintainers/vics80)

---

Top Contributors

[![vics80](https://avatars.githubusercontent.com/u/6604190?v=4)](https://github.com/vics80 "vics80 (5 commits)")[![bibloos](https://avatars.githubusercontent.com/u/26306279?v=4)](https://github.com/bibloos "bibloos (1 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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