PHPackages                             leadthread/php-google-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. leadthread/php-google-shortener

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

leadthread/php-google-shortener
===============================

Easily shorten URLs in PHP

2.0.0(8y ago)212.5kMITPHPPHP ^5.5.9|^7.0

Since May 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/leadthread/php-google-shortener)[ Packagist](https://packagist.org/packages/leadthread/php-google-shortener)[ Docs](https://github.com/leadthread/php-google-shortener)[ RSS](/packages/leadthread-php-google-shortener/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (7)Used By (0)

php-google-shortener
====================

[](#php-google-shortener)

[![Latest Version](https://camo.githubusercontent.com/f2b47e511c619bc397d46252f84fcbcf2c89aed3983bef8d0d28a471b9cf35d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c6561647468726561642f7068702d676f6f676c652d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/leadthread/php-google-shortener/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/cbc4f09004eff754cf3e2b4cd2a7037c794a2eb5f22346b516c29fea8b0b2abd/68747470733a2f2f7472617669732d63692e6f72672f6c6561647468726561642f7068702d676f6f676c652d73686f7274656e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leadthread/php-google-shortener)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2142797de89be8c72a3e32537c7542a7e4d4728c36c977fe98b8d06ae780233d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f7068702d676f6f676c652d73686f7274656e65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/php-google-shortener/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f73f605642598eeee2328b3d640972cc0aa6363860f314bdb9ae10581b1c9d0f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f7068702d676f6f676c652d73686f7274656e65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/php-google-shortener/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/1c4ac926efb90f2924bb989040a5bf7eedb5476ed59563195a7d1ed8141ed7fb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536663332353263333536333065303032396462303138372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56f3252c35630e0029db0187)[![Total Downloads](https://camo.githubusercontent.com/ee0bb4e60a618df7440e00dacbfcc30639c98ee94fcc880e8b79c66a25dfb125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6561647468726561642f7068702d676f6f676c652d73686f7274656e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leadthread/php-google-shortener)

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

[](#installation)

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

```
composer require leadthread/php-google-shortener
```

Usage
-----

[](#usage)

```
use LeadThread\GoogleShortener\Google;
$c = new Google("token");
$result = $c->shorten("https://www.google.com/");
var_dump($result);
// string(21) "http://goo.gl/1SvUIo8"
```

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

3258d ago

Major Versions

1.0.2 → 2.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 (6 commits)")

---

Tags

urlbitlyshortengoogle url shortenertylercd100leadthread

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leadthread-php-google-shortener/health.svg)

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)[shivella/laravel-bitly

Laravel package for generating bitly url

75773.6k1](/packages/shivella-laravel-bitly)[vinelab/url-shortener

URL shortening the easy way.

5917.1k](/packages/vinelab-url-shortener)[dusterio/link-preview

Link preview generation for PHP with Laravel support

126325.2k3](/packages/dusterio-link-preview)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.1k](/packages/gallib-laravel-short-url)

PHPackages © 2026

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