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 7y ago1 watchersCompare

[ Source](https://github.com/echevarria/bitlyv4PHP)[ Packagist](https://packagist.org/packages/echevarria/bitlyv4php)[ RSS](/packages/echevarria-bitlyv4php/feed)WikiDiscussions master Synced 2w 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 21% 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://avatars.githubusercontent.com/u/1697362?v=4)[Marcos Echevarria](/maintainers/echevarria)[@echevarria](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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