PHP code example of media365 / squeezer
1. Go to this page and download the library: Download media365/squeezer 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/ */
media365 / squeezer example snippets
'providers' => [
...
Media365\Squeezer\SqueezerServiceProvider::class,
...
],
$shortener = app('url.shortener');
// This will return your shortened URL as a string
$shortener->shorten('https://github.com');
// This will return your shortened URL as a string with provided driver
$shortener->driver('is_gd')->shorten('https://github.com')