PHPackages                             echevarria/bitlyv4php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. echevarria/bitlyv4php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

echevarria/bitlyv4php
=====================

A simple PHP Library based on Guzzle to generate short links using Bit.ly API V4

14683PHP

Since Jun 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/echevarria/bitlyv4PHP)[ Packagist](https://packagist.org/packages/echevarria/bitlyv4php)[ RSS](/packages/echevarria-bitlyv4php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

URL Shortener - bit.ly v4 API - PHP
===================================

[](#url-shortener---bitly-v4-api---php)

[![Minimum PHP Version](https://camo.githubusercontent.com/decd3febae432726f77fb392c78b96639cd6460c49915c3e1050f3185db606ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230372e312d626c75652e737667)](https://packagist.org/packages/echevarria/bitlyv4php)[![Latest Unstable Version](https://camo.githubusercontent.com/0738a70cbb5776ca80f390b7c00add525ec26c1fb6f2c08d4960f1ff9969d566/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76312e302e302d6f72616e67652e737667)](https://packagist.org/packages/echevarria/bitlyv4php)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

A simple Bitly URL Shortener.

PHP Library based on Guzzle to generate short links using Bit.ly API V4

Installing
----------

[](#installing)

The recommended way to install this library is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install:

```
php composer.phar require echevarria/bitlyv4php:dev-master
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Shortening a link
-----------------

[](#shortening-a-link)

```
use Echevarria\Bitly\Bitly;

$token = 'yourBitlyToken';

$bitly = new Bitly($token);

$short = $bitly->shorten('https://long-url.com');
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/942889871a71dabd0290fdeef9369bd774f855543c2a382c78900f73787fb58e?d=identicon)[echevarria](/maintainers/echevarria)

---

Top Contributors

[![echevarria](https://avatars.githubusercontent.com/u/1697362?v=4)](https://github.com/echevarria "echevarria (12 commits)")

### Embed Badge

![Health badge](/badges/echevarria-bitlyv4php/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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