pixelvide/laravel-url-shortener

Pixelvide URL Shortener

2.1.0 2022-08-10 08:55 UTC

This package is auto-updated.

Last update: 2024-05-10 12:44:12 UTC


README

This package allows us to shorter the url easily using multiple ways i.e.

[x] AWS Based Functionless URL Shortener

Installation

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

  1. 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);