dominikveils / bitly
bit.ly URL shortener API
v1.0
2018-04-15 10:03 UTC
This package is not auto-updated.
Last update: 2025-04-27 08:16:55 UTC
README
Install
$ composer require dominikveils/bitly
Usage
<?php require 'vendor/autoload.php'; $bitly = new DominikVeils\Bitly\Bitly('API KEY'); $short_url = $bitly->shorten('https://google.com'); echo "SHORT URL: {$short_url}", PHP_EOL; $long_url = $bitly->expand($short_url); echo "LONG URL: {$long_url}", PHP_EOL;
LICENSE
MIT