elmsellem / laravel-bitly
Laravel package for generating bitly short urls
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/elmsellem/laravel-bitly
Requires
- php: >=7.4
- illuminate/http: ^7.0 || ^8.0 || ^9.0
This package is auto-updated.
Last update: 2026-01-18 02:36:34 UTC
README
A laravel package for generating Bitly short URLs.
For more information see Bitly
Download laravel-bitly using composer
composer require elmsellem/laravel-bitly
Configure Bitly credentials
php artisan vendor:publish --provider="Elmsellem\Bitly\BitlyServiceProvider"
Add this in you .env file
BITLY_ACCESS_TOKEN=your_secret_bitly_access_token
Usage
<?php $url = app('bitly')->getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27
using facade:
<?php use Bitly; $url = Bitly::getShortenUrl('https://www.google.com/'); // https://bit.ly/3uOZj27