Download the PHP package yeamin/bitly-laravel without Composer
On this page you can find all versions of the php package yeamin/bitly-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yeamin/bitly-laravel
More information about yeamin/bitly-laravel
Files in yeamin/bitly-laravel
Package bitly-laravel
Short Description A laravel package to maintain bitly api, to short link, get full link, description, status and other features offered by bitly.
License MIT
Informations about the package bitly-laravel
Bitly-laravel
A simple package to use bitly api effectively to short link, get full link and other features offered by bitly.
For more information see Bitly
Requirements
Laravel 5.1 or later, minimum php version 7.0
Installation
Installation is a quick 3 step process:
- Download bitly-laravel using composer
- Enable the package in app.php
- Configure your Bitly credentials
Use the different methods offered in this package to access different bitly services.
Step 1: Download laravel-bitly using composer
Add yeamin/bitly-laravel package for laravel by running the command:
Step 2: Enable the package in app.php
Register the Service in: config/app.php. Add the below line inside providers array. One can find the provide array inside config/app.php
` Register the Bitly Facade in: config/app.php Add the below line inside aliases array.
This is a example where the Bitly facades will be added. `
Step 3: Configure Bitly credentials
Run the following command.
Add this in you .env file. One will need generic access token and enter the token in the place of your_secret_bitly_access_token inside .env You can find the generic access token from here Bitly Access Token.
Usage
To Get short URL:
( Do not forget to give http or https in the beginning of your url )
`
Or if you want to use facade, add this in your class after namespace declaration:
Then you can use it directly by calling Bitly::
like:
`
To Expand URL:
`
Or if you want to use facade, add this in your class after namespace declaration:
Then you can use it directly by calling Bitly::
like:
`
All versions of bitly-laravel with dependencies
ext-json Version *
illuminate/support Version ^5.1 || ^6.0
guzzlehttp/guzzle Version ~6.0