PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Written By

Simpler Url Shortener for Laravel

Simpler Url Shortener for Laravel

Hello! Marc here.

I've just released a new laravel package. It's very simple, but hope it will help you in some projects.

Thank you! All PRs and suggestions will be welcome!

https://github.com/magarrent/laravel-url-shortener

Laravel Url Shortener

Laravel Url Shortener

Software License Package Size

Install

composer require magarrent/laravel-url-shortener

Usage

Import the UrlShortener in your php file.

use Magarrent\LaravelUrlShortener\Models\UrlShortener;

Then you can use the Url shortener package to redirect internal and external links.

UrlShortener::generateShortUrl("https://www.kodio.tech")

UrlShortener::generateShortUrl("/my-next/local/page")

Ex. Redirection:

https://your.url/H8g9Jx => https://www.kodio.tech


You only have to send the Url To param to the UrlShortener model:

public  static  function  generateShortUrl(String $toUrl):  String

Roadmap

  • Add custom configuration for url key characters (Currently 6)

Changelog

1.0 - First version

Contributing

Please see CONTRIBUTING for details.

Credits

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Comments (5)

loading comments