PHPackages                             superbuddy/bitly4laravel - 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. superbuddy/bitly4laravel

ActiveLibrary[API Development](/categories/api)

superbuddy/bitly4laravel
========================

Provides a Laravel package to communicate with Bit.ly API

v3.1.0(11y ago)027MITPHPPHP &gt;=5.4

Since Jan 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SuperBuddy/bitly4laravel)[ Packagist](https://packagist.org/packages/superbuddy/bitly4laravel)[ RSS](/packages/superbuddy-bitly4laravel/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (17)Used By (0)

bitly4laravel
=============

[](#bitly4laravel)

[![Build Status](https://camo.githubusercontent.com/c08d25ddfe079eb902a9a7a606810d29ae6494a983d8860dbe60ab970a1b69ec/68747470733a2f2f7472617669732d63692e6f72672f6a656c6f7661632f6269746c79346c61726176656c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jelovac/bitly4laravel) [![Latest Stable Version](https://camo.githubusercontent.com/0329462e5950a83bc031fd9dbee1505d7b272b687e48cedf9255c6b33058eaf5/68747470733a2f2f706f7365722e707567782e6f72672f6a656c6f7661632f6269746c79346c61726176656c2f762f737461626c652e706e67)](https://packagist.org/packages/jelovac/bitly4laravel) [![Total Downloads](https://camo.githubusercontent.com/8a5987e1c0a6fc53747639cc567c6a983c5ba4958c11da8ee0bf65ea3780799f/68747470733a2f2f706f7365722e707567782e6f72672f6a656c6f7661632f6269746c79346c61726176656c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jelovac/bitly4laravel) [![Latest Unstable Version](https://camo.githubusercontent.com/7cc435d17b85bcb2da04afaa4504602246e661b18b0d4adb32af829d7c04c157/68747470733a2f2f706f7365722e707567782e6f72672f6a656c6f7661632f6269746c79346c61726176656c2f762f756e737461626c652e706e67)](https://packagist.org/packages/jelovac/bitly4laravel) [![License](https://camo.githubusercontent.com/c4fa42dbaac3e8ead043763514eac3a8dc9fee2d7ed7c9c1ab5e99e59a662fc8/68747470733a2f2f706f7365722e707567782e6f72672f6a656c6f7661632f6269746c79346c61726176656c2f6c6963656e73652e706e67)](https://packagist.org/packages/jelovac/bitly4laravel)

Provides a Laravel package to communicate with Bit.ly API.

In order to use this package you need to get [OAuth Generic Access Token](https://bitly.com/a/oauth_apps) from Bitly website.

Instalation
===========

[](#instalation)

Warning this is v3 version of bitly4laravel package. If you want to use the old v2 version use the v2 branch.

Add bitly4laravel to your composer.json file.

```
require : {
    "jelovac/bitly4laravel": "3.*"
}

```

Or with composer command:

```
composer require "jelovac/bitly4laravel": "3.*"

```

Add provider to your app/config/app.php providers

```
'Jelovac\Bitly4laravel\Bitly4laravelServiceProvider',

```

Publish config

For Laravel 5 use:

```
php artisan vendor:publish

```

For Laravel 4 use:

```
php artisan config:publish jelovac/bitly4laravel

```

Optional (recommended)
======================

[](#optional-recommended)

Add alias to app/config/app.php aliases

```
'Bitly' => 'Jelovac\Bitly4laravel\Facades\Bitly4laravel',

```

Usage
=====

[](#usage)

Shorten links

```
Bitly::shorten('http://google.com/');

Response format: JSON

{
    "data": {
      "global_hash": "900913",
      "hash": "ze6poY",
      "long_url": "http://google.com/",
      "new_hash": 0,
      "url": "http://bit.ly/ze6poY"
    },
    "status_code": 200,
    "status_txt": "OK"
}

```

Expand links

```
Bitly::expand('http://bit.ly/ze6poY');

Response format: JSON

{
    "data": {
      "expand": [
        {
          "global_hash": "900913",
          "long_url": "http://google.com/",
          "short_url": "http://bit.ly/ze6poY",
          "user_hash": "ze6poY"
        }
      ]
    },
    "status_code": 200,
    "status_txt": "OK"
}

```

Repository
==========

[](#repository)

License
=======

[](#license)

The Bitly4laravel package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~34 days

Recently: every ~16 days

Total

16

Last Release

4039d ago

Major Versions

v1.0 → v2.0.22014-02-10

v2.2.1 → v3.02015-02-16

v2.2.2 → v3.0.22015-03-05

v2.x-dev → v3.0.32015-04-05

PHP version history (3 changes)v1.0PHP &gt;=5.3.0

v2.1.0PHP &gt;=5.3.7

v3.0PHP &gt;=5.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19798455?v=4)[Super Buddy](/maintainers/superbuddy)[@SuperBuddy](https://github.com/SuperBuddy)

---

Top Contributors

[![jelovac](https://avatars.githubusercontent.com/u/3627139?v=4)](https://github.com/jelovac "jelovac (59 commits)")[![jurienhamaker](https://avatars.githubusercontent.com/u/5418114?v=4)](https://github.com/jurienhamaker "jurienhamaker (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/superbuddy-bitly4laravel/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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