1. Go to this page and download the library: Download expirenza/shorturl-helper 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/ */
expirenza / shorturl-helper example snippets
code
use Expirenza\short\Link;
$class = new Link('some token', 'https://server.url');
$result = $class->getOne('https://google.com');
// output
var_dump($result);
code
use Expirenza\short\Link;
$class = new Link('some token', 'https://server.url');
$result = $class->getMany(['https://google.com', 'https://mail.com']);
// output
var_dump($result);