1. Go to this page and download the library: Download tobymaxham/url-shortener library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tobymaxham / url-shortener example snippets
$url = Shortener::short('https://example.com');
$shortener = new TobyMaxham\Ux9\Shortener($url = null, $config = null, $format = 'json');
// set the API Token
$shortener->setToken('YOUR_API_TOKEN');