Download the PHP package canducci/shorten without Composer
On this page you can find all versions of the php package canducci/shorten. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shorten
Canducci Shorten Url
Providers: BitLy, Googl, IsGd, MigreMe, TinyUrl and TrIm.
The package offers providers in their most current version can be selected for obtaining URL shortened. Are they:
- Bitly (https://bitly.com/)
- Googl (https://developers.google.com/url-shortener/v1/getting_started)
- IsGd (http://is.gd)
- MigreMe (http://migre.me/)
- TinyUrl (http://tinyurl.com/)
- TrIm (https://tr.im/links)
All of these providers work in a clear and objective manner to generate the urls, of course you must choose one or perhaps all for the generation of short url for your systems.
Quick start
Required setup
In the require
key of composer.json
file add the following
Run the Composer update comand
In your config/app.php
add providers
array
At the end of config/app.php
add o aliases
(Facade) in array
How to use?
Simple example using only one of the providers (IsGd):
Injection Contracts
Facades
Functions
Single Instance
Note
These three providers below must have a register in that site to be released to generate short url with token or key provided on the same register.
- Bitly (key_bitly) (https://bitly.com/)
- Googl (key_google) (https://developers.google.com/url-shortener/v1/getting_started)
- TrIm (key_api) (https://tr.im/links)
Different from the others only need to have information as to url so long to run the code successfully.