Bitly4laravel
Provides a Laravel package to communicate with Bit.ly API
Install / Use
/learn @jelovac/Bitly4laravelREADME
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 from Bitly website.
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
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)
Add alias to app/config/app.php aliases
'Bitly' => Jelovac\Bitly4laravel\Facades\Bitly4laravel::class,
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
https://github.com/jelovac/bitly4laravel
License
The Bitly4laravel package is open-sourced software licensed under the MIT license
Related Skills
gh-issues
352.2kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
352.2kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
taskflow-inbox-triage
352.2kname: taskflow-inbox-triage description: Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some w





