fireguard / url-shortener
Url Shortener.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^6.1
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2024-10-27 02:38:51 UTC
README
Installation
This Package can be installed through the composer.
In order for the package to be automatically added to your composer.json file, run the following command:
composer require fireguard/url-shortener
Or if you prefer, add the following snippet manually:
{ "require": { ... "fireguard/url-shortener": "^0.1" } }
Usage
Basic instructions for usage.
Google URL Shortener
Generate Google API Key
https://developers.google.com/console/help/generating-dev-keys
$google = new GoogleUrlShortener('YOUR_GOOGLE_KEY'); $url = $google->shorten('https://google.com.br/');
ToLy URL Shortener
$toLy = new Fireguard\UrlShortener\ToLyUrlShortener(); $url = $toLy->shorten('https://google.com.br/');