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

ActiveLibrary

leadthread/php-bitly
====================

Easily shorten URLs in PHP

4.0.0(9y ago)216.7k1MITPHPPHP ^5.5.9|^7.0

Since Apr 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/leadthread/php-bitly)[ Packagist](https://packagist.org/packages/leadthread/php-bitly)[ Docs](https://github.com/leadthread/php-bitly)[ RSS](/packages/leadthread-php-bitly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

php-bitly
=========

[](#php-bitly)

[![Latest Version](https://camo.githubusercontent.com/ec7a1ac15f68e80c027626aef4d1a05c95357789f26491ee75725e3d991f4d12/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c6561647468726561642f7068702d6269746c792e7376673f7374796c653d666c61742d737175617265)](https://github.com/leadthread/php-bitly/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/06dac760fc28a9515ecfadb8b8f2533dae7f5cb76e830f8e8ba4df19a0ede840/68747470733a2f2f7472617669732d63692e6f72672f6c6561647468726561642f7068702d6269746c792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leadthread/php-bitly)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ef640314989aff23a7503b9cff25769d4e3a07b524f68fa649f4d4f990e8ae66/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f7068702d6269746c792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/php-bitly/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9734d212d16b506a6dd3741fe08e37495fae6d962c1d9985b4d9bb7821277879/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c6561647468726561642f7068702d6269746c792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/leadthread/php-bitly/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/1c4ac926efb90f2924bb989040a5bf7eedb5476ed59563195a7d1ed8141ed7fb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536663332353263333536333065303032396462303138372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56f3252c35630e0029db0187)[![Total Downloads](https://camo.githubusercontent.com/c060bd3dcf2392c689900a02f4ae5b2ba78f56269cfec592f60597d6b6d86f24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6561647468726561642f7068702d6269746c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leadthread/php-bitly)

Version 3 now uses OAuth2 as required by Bitly. [Get your developer access token here](https://bitly.com/a/oauth_apps)

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

[](#installation)

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

```
composer require leadthread/php-bitly
```

Usage
-----

[](#usage)

```
use LeadThread\Bitly\Bitly;
$c = new Bitly("access token");
$result = $c->shorten("https://www.google.com/");
var_dump($result);
// string(21) "http://bit.ly/1SvUIo8"
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

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

Recently: every ~86 days

Total

9

Last Release

3306d ago

Major Versions

1.2.1 → 2.0.02016-05-12

2.0.0 → 3.0.02016-07-13

3.0.0 → 4.0.02017-04-20

PHP version history (2 changes)1.0.0PHP ^5.5.9 || ^7.0

1.1.0PHP ^5.5.9|^7.0

### 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 (30 commits)")

---

Tags

urlbitlyshortentylercd100zenapply

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

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

Laravel package for generating bitly url

75789.0k1](/packages/shivella-laravel-bitly)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[vinelab/url-shortener

URL shortening the easy way.

6217.2k](/packages/vinelab-url-shortener)[rukbat/bitly-bundle

bit.ly API bundle for symfony2

10135.2k](/packages/rukbat-bitly-bundle)

PHPackages © 2026

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