mniknab/surl

SURL - Laravel Short Url

1.1.0 2020-03-10 19:35 UTC

This package is auto-updated.

Last update: 2024-05-11 13:41:51 UTC


README

68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6d6e696b6e61622f696d6167652f75706c6f61642f76313538333833383034332f7375726c2d6c6f676f5f746f6b6d71692e706e67

Build Status Coverage Status Latest Stable Version License

About Surl

SURL is a package allowing you to shorten urls.

By Mohammad Niknab

Installation

Composer

You can install this package via Composer by running this command:

composer require mniknab/surl

Laravel

Setup

NOTE : The package will automatically register itself if you're using Laravel >= v5.5, so you can skip this section.

Once the package is installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
    ...
    Mniknab\Surl\SurlServiceProvider::class,
],

Artisan commands

To publish the config, migrations and views files, run this command:

To force publishing add --force flag.

php artisan vendor:publish --provider="Mniknab\Surl\SurlServiceProvider"

To create the tables, run this command:

php artisan migrate

Configuration

Surl configuration file can be found on config/surl.php

Usage

NOTE: You can also use Surl as an API.

Go to http://{your-project}/surl-management