PHPackages                             h2akim/googl - 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. h2akim/googl

AbandonedArchivedLibrary[API Development](/categories/api)

h2akim/googl
============

Google URL Shortener API

1.0.1(9y ago)221.9k2MITPHP

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/h2akim/googl-php)[ Packagist](https://packagist.org/packages/h2akim/googl)[ RSS](/packages/h2akim-googl/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Google URL Shortener API
========================

[](#google-url-shortener-api)

Simple PHP library for Google URL Shortener API

Discontinuation
---------------

[](#discontinuation)

As Google's URL Shortener service will be discontinued on March 30, 2019, there is no new development of this package from now on. Thanks

Getting Started
---------------

[](#getting-started)

### Composer

[](#composer)

```
composer require h2akim/googl:*
```

How to Use
----------

[](#how-to-use)

#### Create a new shorten URL

[](#create-a-new-shorten-url)

Parameters available:

- longUrl
- object *(optional)* - return as object (if true)

```
namespace H2akim\Googl;

$googl = new Googl('your-api-key');

$googl->create([
    'longUrl' => 'http://url.that.you.want.com'
]);
```

#### Retrieve original url from shorten URL

[](#retrieve-original-url-from-shorten-url)

Parameters available:

- shortUrl
- projection - *ANALYTICS\_CLICKS / ANALYTICS\_TOP\_STRINGS / FULL*
- object *(optional)* - return as object (if true)

```
namespace H2akim\Googl;

$googl = new Googl('your-api-key');

$googl->expand([
    'shortUrl' => 'http://goo.gl/short-url'
]);
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Total

2

Last Release

3417d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/514048?v=4)[Hakim Razalan](/maintainers/h2akim)[@h2akim](https://github.com/h2akim)

---

Top Contributors

[![h2akim](https://avatars.githubusercontent.com/u/514048?v=4)](https://github.com/h2akim "h2akim (7 commits)")

### Embed Badge

![Health badge](/badges/h2akim-googl/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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