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

ActiveLibrary[API Development](/categories/api)

kobas/bitly-api-php
===================

PHP library to get a short url via a generic access token from bit.ly

1.2(3y ago)1491MITPHPCI failing

Since Feb 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/KOBASSoftware/bitly-api-php)[ Packagist](https://packagist.org/packages/kobas/bitly-api-php)[ RSS](/packages/kobas-bitly-api-php/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Kobas Bit.ly API v4 Library
===========================

[](#kobas-bitly-api-v4-library)

**This package:**

- Provides an easy way to get bit.ly to shorten a URL using their v4 API.
- Only supports using [Bit.ly Generic Access Tokens](https://dev.bitly.com/v4/#section/Application-using-a-single-account).

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

[](#installation)

To install, use composer:

```
composer require kobas/bitly-api-php

```

Usage
-----

[](#usage)

```
$bitly = new \Kobas\Bitly\Bitly('YOUR_ACCESS_TOKEN');
$url = $bitly->shortenUrl('https://google.com');
echo $url;
```

Licensing
---------

[](#licensing)

The MIT License (MIT). Please see [License File](https://github.com/kobas/bitly-api-php/blob/master/LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

Every ~508 days

Total

3

Last Release

1255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94ac0ec318be353da4f3451693838d0bd64c86cf8b3aa242d2314e574d169a39?d=identicon)[Seanmcn](/maintainers/Seanmcn)

---

Top Contributors

[![seanmcn](https://avatars.githubusercontent.com/u/1639126?v=4)](https://github.com/seanmcn "seanmcn (6 commits)")

---

Tags

api-wrapperbitlybitly-v4phpphpapibitly

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[phplicengine/bitly

Bitly API v4

22277.3k](/packages/phplicengine-bitly)

PHPackages © 2026

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