All Projects → arietimmerman → laravel-url-shortener

arietimmerman / laravel-url-shortener

Licence: AGPL-3.0 license
URL shortener for Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to laravel-url-shortener

1pt
A URL shortener with protection against malicious redirects
Stars: ✭ 20 (-23.08%)
Mutual labels:  url-shortener
secusu
SЁCU is a public API to store self-destructing data payloads with url shortener and handle anonymous chat-rooms.
Stars: ✭ 24 (-7.69%)
Mutual labels:  url-shortener
yii2-minify-url
Project on YII2 framework for create short url (url shortener)
Stars: ✭ 15 (-42.31%)
Mutual labels:  url-shortener
bingus.link
A free, private URL shortener
Stars: ✭ 19 (-26.92%)
Mutual labels:  url-shortener
KuttSharp
🔪 .NET Package for kutt.it url shortener
Stars: ✭ 29 (+11.54%)
Mutual labels:  url-shortener
url-shortener
A URL Shortener Application built with Node.js, Express and MongoDB
Stars: ✭ 16 (-38.46%)
Mutual labels:  url-shortener
gShort
URL Shortener without all the crap
Stars: ✭ 80 (+207.69%)
Mutual labels:  url-shortener
delta
A modern file uploader + URL shortner written in node for your private cloud. low memory overhead + secure
Stars: ✭ 103 (+296.15%)
Mutual labels:  url-shortener
node-url-shortener
URL Shortener in Base58 using Node.js, Express, Sequelize, Mocha and Bootstrap
Stars: ✭ 21 (-19.23%)
Mutual labels:  url-shortener
miniurl
A production-ready URL shortener microservice.
Stars: ✭ 20 (-23.08%)
Mutual labels:  url-shortener
goalie-url-shortener
An implementation of go/ vanity-urls with LDAP support that makes it simple to access internal web assets on a coorporate network.
Stars: ✭ 16 (-38.46%)
Mutual labels:  url-shortener
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (+119.23%)
Mutual labels:  url-shortener
Becoditive-API
The official API of beCoditive with many endpoints like memes, animals, image manipulation, url shortner, etc.
Stars: ✭ 14 (-46.15%)
Mutual labels:  url-shortener
ShortURL-Services-List
A list of 600+ URL shorteners (i.e goo.gl, bit.ly)
Stars: ✭ 32 (+23.08%)
Mutual labels:  url-shortener
FireShort
A URL Shortener made using React.JS and Google Firestore
Stars: ✭ 29 (+11.54%)
Mutual labels:  url-shortener
redir
🧭 Full-featured, self-hosted URL shortener.
Stars: ✭ 61 (+134.62%)
Mutual labels:  url-shortener
em-shorty
Another URL shortener based on Event Machine and rack-fiber_pool
Stars: ✭ 56 (+115.38%)
Mutual labels:  url-shortener
dwarf
A O(1) URL shortener microservice backed by redis and gRPC communication.
Stars: ✭ 33 (+26.92%)
Mutual labels:  url-shortener
1y
A template project to build a short URL manager with Eleventy
Stars: ✭ 68 (+161.54%)
Mutual labels:  url-shortener
tiny0
Custom URL shortener in Flask.
Stars: ✭ 60 (+130.77%)
Mutual labels:  url-shortener

Latest Stable Version Total Downloads

A minimal Laravel package for shortening URLs. Apart for creating short URLs - like bitly - it also supported updating URL redirects and tracking URL clicks.

Laravel URL Shortener

Install the package. It supports Laravel 5.5 and up (including 7.0 and up).

composer require arietimmerman/laravel-url-shortener
php artisan migrate

And start shortening URLs

(string)URLShortener::shorten("http://www.example.com");

Or

php artisan url:shorten http://www.example.com

Usage for Laravel < 5.5

Add the service provider in your config/app.php.

'providers' => [ /* [..] */ \ArieTimmerman\Laravel\URLShortener\ServiceProvider::class /* [..] */ ];

Optional

Publish the configuration and the view.

php artisan vendor:publish --provider="ArieTimmerman\Laravel\URLShortener\ServiceProvider"

Optionally, register for URLVisit events in your EventServiceProvider.

protected $listen = [
	'ArieTimmerman\Laravel\URLShortener\Events\URLVisit' => [
		'App\Listener\YourListener',
	]
];

Configuration

See config/urlshortener.php

Docker

Build and start the docker container.

docker-compose build
docker-compose up

Now shorten an URL like this

docker-compose exec laravel-url-shortener php artisan url:shorten https://www.example.com

Check out the redirect

curl -v http://localhost:18123/code
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].