Shivella / laravel-bitly by Shivella

Laravel package for generating bitly url
Package Data
Maintainer Username: Shivella
Maintainer Contact: (Wessel Strengholt)
Package Create Date: 2016-12-19
Package Last Update: 2024-02-27
Language: PHP
License: MIT
Last Refreshed: 2024-04-12 03:08:35
Package Statistics
Total Downloads: 516,717
Monthly Downloads: 9,705
Daily Downloads: 411
Total Stars: 74
Total Watchers: 2
Total Forks: 27
Total Open Issues: 0

Laravel Bitly Package

A laravel package for generating Bitly urls

For more information see Bitly

Build Status Latest Stable Version License Total Downloads Coverage Status


Laravel 5.1 or later


Installation is a quick 3 step process:

  1. Download laravel-bitly using composer
  2. Enable the package in app.php
  3. Configure your Bitly credentials
  4. (Optional) Configure the package facade

Step 1: Download laravel-bitly using composer

Add shivella/laravel-bitly by running the command:

composer require shivella/laravel-bitly

Step 2: Enable the package in app.php

Register the Service in: config/app.php


Step 3: Configure Bitly credentials

php artisan vendor:publish --provider="Shivella\Bitly\BitlyServiceProvider"

Add this in you .env file


Step 4 (Optional): Configure the package facade

Register the Bitly Facade in: config/app.php

'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        'Auth' => Illuminate\Support\Facades\Auth::class,
        'Bitly' => Shivella\Bitly\Facade\Bitly::class,


$url = app('bitly')->getUrl(''); //

Or if you want to use facade, add this in your class after namespace declaration:

use Bitly;

Then you can use it directly by calling Bitly:: like:

$url = Bitly::getUrl(''); //