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

AbandonedArchivedLibrary[API Development](/categories/api)

jelovac/bitly4laravel
=====================

Provides a Laravel package to communicate with Bit.ly API

v3.7.2(8y ago)37111.1k17[1 issues](https://github.com/jelovac/bitly4laravel/issues)MITPHPPHP &gt;=5.6

Since Jan 5Pushed 3y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (25)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.

Project status: Archived (Abandoned)
====================================

[](#project-status-archived-abandoned)

Due to security concerns decided to archive the project since it hasn't been maintained for years.

Either fork it or seek other libraries which are more up to date.

All the best Vladimir J.

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::class,

```

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::class,

```

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

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~62 days

Recently: every ~43 days

Total

24

Last Release

3063d 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.2.3 → v3.0.32015-04-05

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

v2.1.0PHP &gt;=5.3.7

v3.0PHP &gt;=5.4

v3.6PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/32b1e58f45acc4bdbcf5eb1aa424e720bbcf92c0b04098a4dd9bf303aa133db5?d=identicon)[vladimir-jelovac](/maintainers/vladimir-jelovac)

---

Top Contributors

[![jelovac](https://avatars.githubusercontent.com/u/3627139?v=4)](https://github.com/jelovac "jelovac (81 commits)")[![rydurham](https://avatars.githubusercontent.com/u/674347?v=4)](https://github.com/rydurham "rydurham (2 commits)")[![satoved](https://avatars.githubusercontent.com/u/14319239?v=4)](https://github.com/satoved "satoved (1 commits)")

---

Tags

apibitlylaravelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

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

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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