ukadev/uka-url

Simple URL shortener powered by Lumen
7 2
Install
composer require ukadev/uka-url
Latest Version:2.0.1
PHP:^7.3|^8.0
License:MIT
Last Updated:Apr 19, 2023
Links: GitHub  ·  Packagist
Maintainer: ukadev

Uka-url URL Shortener

Built with Lumen 8.x, Bootstrap v5 and jQuery-3.5.1

See the DEMO or just go down to the screenshot

Prerequisites

To make the application working you are going to need:

  • LAMP environment or equivalent with mod_rewrite enabled
  • composer

Installation

Follow the next instructions:

  • Open console/terminal and run: git clone https://github.com/ukadev/uka-url.git
  • Enter into the cloned folder and run: composer install
  • Open the file .env in the application root directory (if doesn't exist, copy it from .env.example) and modify the following variables with your database connection details: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
  • After configure the database variables, execute the command from the root of the application: php artisan migrate
  • Set up your virtual host to point to the folder called public as the website root folder. You can use the next example if you want it (may require modifications):
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/public
        <Directory /var/www/public>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order Deny,Allow
                Allow from all
                Require all granted
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Extra notes

  • If you want to add a value to the KEY variable of the .env file, you can execute the following command in the console/terminal and paste it there: php -r "echo md5(uniqid()).\"\n\";"

ScreenShot

Related Packages

Version History

Version Released PHP Laravel License
2.0.1 ^7.3|^8.0 MIT
2.0 ^7.3|^8.0 MIT
1.1.0 >=5.3.4 4.2.* MIT
1.0.0 >=5.3.4 4.2.* MIT