PHPackages                             shivella/laravel-bitly - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shivella/laravel-bitly

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shivella/laravel-bitly
======================

Laravel package for generating bitly url

1.1.16(1y ago)75789.0k—7%25[1 PRs](https://github.com/Shivella/laravel-bitly/pulls)1MITPHPPHP &gt;=7.1CI passing

Since Dec 19Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Shivella/laravel-bitly)[ Packagist](https://packagist.org/packages/shivella/laravel-bitly)[ Docs](https://github.com/Shivella/laravel-bitly)[ RSS](/packages/shivella-laravel-bitly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (27)Used By (1)

Laravel Bitly Package
=====================

[](#laravel-bitly-package)

A laravel package for generating Bitly short URLs.

For more information see [Bitly](https://bitly.com/)

[![Build Status](https://github.com/Shivella/laravel-bitly/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/Shivella/laravel-bitly/actions) [![Latest Stable Version](https://camo.githubusercontent.com/f0183e9895529bc82669439b9feed2bc308ecc4140870da5a9e88fe6507dc334/68747470733a2f2f706f7365722e707567782e6f72672f73686976656c6c612f6c61726176656c2d6269746c792f762f737461626c65)](https://packagist.org/packages/shivella/laravel-bitly) [![License](https://camo.githubusercontent.com/e0cc47e1d0e7f253036914081dbfe0bbbe4ae0a6a7bf1037c4d198d478bf5e89/68747470733a2f2f706f7365722e707567782e6f72672f73686976656c6c612f6c61726176656c2d6269746c792f6c6963656e7365)](https://packagist.org/packages/shivella/laravel-bitly) [![Total Downloads](https://camo.githubusercontent.com/631ce0fbfe22e43bb82596da926fc45d6ef1663f043ec9427605a088b076ddb6/68747470733a2f2f706f7365722e707567782e6f72672f73686976656c6c612f6c61726176656c2d6269746c792f646f776e6c6f616473)](https://packagist.org/packages/shivella/laravel-bitly)

Requirements
------------

[](#requirements)

Laravel 5.1 or later

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

[](#installation)

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

[](#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

[](#step-2-enable-the-package-in-appphp)

Register the Service in: **config/app.php**

```
Shivella\Bitly\BitlyServiceProvider::class,
```

### Step 3: Configure Bitly credentials

[](#step-3-configure-bitly-credentials)

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

```

Add this in you **.env** file

```
BITLY_ACCESS_TOKEN=your_secret_bitly_access_token

```

### Step 4 (Optional): Configure the package facade

[](#step-4-optional-configure-the-package-facade)

Register the Bitly Facade in: **config/app.php**

```
