PHPackages                             kristobaljunta/bitly-shortening-class - 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. kristobaljunta/bitly-shortening-class

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

kristobaljunta/bitly-shortening-class
=====================================

A simple class to shorten links using Bitly API

1.0(10y ago)017WTFPLPHPPHP &gt;=5.3.0

Since Apr 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/KristobalJunta/bitly-shortening-class)[ Packagist](https://packagist.org/packages/kristobaljunta/bitly-shortening-class)[ RSS](/packages/kristobaljunta-bitly-shortening-class/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

bitly-shortening-class
======================

[](#bitly-shortening-class)

Bitly shortening class

Simple class for shortening links using bit.ly; provides only link shortening

Usage
-----

[](#usage)

Create a `Bitly` class object and pass an access token to it (you can use generic oauth token for that) like so:

```
use KristobalJunta\Bitly;

$accessToken = 'your-access-token';

$bitly = new Bitly([
    'access_token' => $accessToken
]);
```

You can also choose response format (either text, json or xml). Default is json:

```
$bitly = new Bitly([
    'access_token' => $accessToken,
    'response_type' => 'text'
]);
```

Finally, use the `shorten` method:

```
$shortenedUrl = $bitly->shorten('http://example.com');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3680d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1315b9845c690d04d14923edb1539201406c23a8fad8646d73cf25cc1078c2bd?d=identicon)[kristobaljunta](/maintainers/kristobaljunta)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kristobaljunta-bitly-shortening-class/health.svg)

```
[![Health](https://phpackages.com/badges/kristobaljunta-bitly-shortening-class/health.svg)](https://phpackages.com/packages/kristobaljunta-bitly-shortening-class)
```

PHPackages © 2026

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