PHP code example of hpez / url-shortener
1. Go to this page and download the library: Download hpez/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/ */
hpez / url-shortener example snippets
'UrlShortener' => \Hpez\UrlShortener\Facades\UrlShortener::class,
Hpez\UrlShortener\UrlShortenerServiceProvider::class
$shortenedUrl = UrlShortener::shorten('/test'); // returns '/u/70aa139e2c' e.g.
shell script
php artisan migrate