This package allows us to shorter the url easily using multiple ways i.e.
[x] AWS Based Functionless URL Shortener
require this package with composer:
composer require pixelvide/laravel-url-shortener
Add following keys in .env file
key | value |
---|---|
SHORTENER_API_URL | apigateway url |
After installing URL Shortener, you can short urls
- Using AWS Functionless URL Shortener.
$url = 'https://www.pixelvide.com';
$awsShortUrl = new \Pixelvide\UrlShortener\AwsShortUrl($url);
$url = new \Pixelvide\UrlShortener\Url;
$shortUrl = $url->shorten($awsShortUrl);