Download the PHP package kalprajsolutions/bitly without Composer
On this page you can find all versions of the php package kalprajsolutions/bitly. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bitly
Laravel Bitly Advanced Package
A laravel package for generating Bitly advanced short URLs and BITLINKS.
Bitly is the most widely trusted link management platform in the world. By using the Bitly API, you will exercise the full power of your links through automated link customization, mobile deep linking, and click analytics.
For more information see BITLY DEV DOCS
Requirements
Laravel 5.1 or Later
PHP 7.1 or Later
Bitly Access Token
Installation
Installation is a quick 3 step process:
- Download kalprajsolutions/bitly using composer
- Enable the package in app.php
- Configure your Bitly credentials
- (Optional) Configure the package facade
Step 1: Download kalprajsolutions/bitly using composer
Add kalprajsolutions/bitly by executing the command:
Step 2: Enable the package in app.php
Register the Service in: config/app.php
Step 3: Configure Bitly credentials
Add this in you .env file
Step 4 (Optional): Configure the package facade
Register the Bitly Facade in: config/app.php
Quick Usage
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:
In quick usage you can also use Proxy to short the url asap using ->proxy()
Advance Usage
This Bitly package allow you to use advance bitlink attributes to customize bitly urls and proxies.
Guarding Attributes
Note: While using attribues you will have to provide
->url()
and->get()
to retrive short url!
URL
You will have to provide long URL to this function which will be used to shorten the url.
TITLE
Its a short description that appears in the Bitly UI. You can now set the title of the URL which you are shortning by passing title in title function
PROXY
Pass an associative array to specify HTTP proxies for specific URI schemes (i.e., "http", "https"). Provide a no key value pair to provide a list of host names that should not be proxied to.
Note: You can provide proxy URLs that contain a scheme, username, and password. For example, "http://user:pass@localhost:8125".
OR
TAGS
Set multiple tags with tags attributes. Tags must be provided in array.
GUID
guid can be used to set your group id. GUID Identifies a group of users in your account. Every user will belong to at least one group within an organization. Most actions on our API will be on behalf of a group. Always verify your default group in Bitly and specify a group in the call with ->guid()
attribute.
DOMAIN
Customizing the domain requires that you have a custom domain attached to your Bitly account. The default value is bit.ly.
To brand your short links use domain attribute. Premium Bitly customers can set custom domain added in dashboard with ->domain()
. This is only for Premium Bitly Customers
All versions of bitly with dependencies
ext-json Version *
illuminate/support Version ^5.8 || ^6.0 || ^7.0 || ^8.0
guzzlehttp/guzzle Version ~6.0 || ^7.0.1 || ^7.1 || ^7.2 || ^7.3