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

ActiveLibrary[API Development](/categories/api)

oleander/googl
==============

Google URL Shortener API in PHP

3561PHPCI passing

Since Aug 13Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Googl
=====

[](#googl)

Google URL shortener API in PHP

Usage
-----

[](#usage)

### Shorten url

[](#shorten-url)

```
$client = new Googl\Base("username@gmail.com", "password");
$url = $client->shorten("http://www.bbc.co.uk/");
echo $url->short; # => "http://goo.gl/wZts"
```

Your url should now be visible at .

### Expand url

[](#expand-url)

```
$long = Googl\Base::expand("http://goo.gl/wZts");
echo $url->original; # => "http://www.bbc.co.uk/"
```

Install
-------

[](#install)

### Without Composer

[](#without-composer)

Clone the project using `git clone https://github.com/oleander/googl-php`and include the source file with `require_once("googl-php/src/Googl.class.php");`

### With Composer

[](#with-composer)

Add the following json to your `composer.json` file and run `composer update`.

```
{
  "require" : {
    "oleander/googl" : "dev-master"
  }
}

```

Test
----

[](#test)

Tests can be found in the `tests` folder and executed by running `USER="username@gmail.com" PASSWORD="gmail-password" phpunit`. Don't forget to run `composer update` before you run the test suite.

Contributing
------------

[](#contributing)

1. Fork it (  )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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/773d2b6206a53adce6681fcb830b6f15ec18c91d54d05b24991cac91c0e5986b?d=identicon)[oleander](/maintainers/oleander)

---

Top Contributors

[![oleander](https://avatars.githubusercontent.com/u/220827?v=4)](https://github.com/oleander "oleander (7 commits)")[![MartyIX](https://avatars.githubusercontent.com/u/203266?v=4)](https://github.com/MartyIX "MartyIX (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/oleander-googl/health.svg)](https://phpackages.com/packages/oleander-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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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