sachintool / bitly-connect
Connect Bitly Account
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/sachintool/bitly-connect
Requires
- php: >=5.6.39
This package is auto-updated.
Last update: 2025-12-11 23:01:56 UTC
README
This is used to Connect Bitly Account and to generate Bitly Url
Installation
composer require sachintool/bitly-connect
Usage
https://bitly.com/oauth/authorize
Code Generate
$code = $this->request->getQuery('code');
Create App
click this url and create app and call back url
Return BITLY_CLIENT_ID, BITLY_CLIENT_SECRET and CALL BACK URL
Call back Url
Create object
use SachinTool\BitlyConnect;
$response = new BitlyConnect();
Example with parameter
use SachinTool\BitlyConnect;
$response = $response->connect(BITLY_CLIENT_ID,BITLY_CLIENT_SECRET, $code, $callback_url);
Bitly Share
Example with parameter
use SachinTool\BitlyConnect;
$response = $response->share($access_token, $video_url);
Developer
Sachin Mishra (http://sachinms.herokuapp.com/)