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.8k2MITPHP

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 1mo ago

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 77% 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

3371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6195de079fa9258ea11c8f2255bf95af31ffb2c76526ba7367ba38b9456edc8d?d=identicon)[h2akim](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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