2017 © Pedro Peláez
 

library lighturl

Open Source Url Shortener

image

lighturl/lighturl

Open Source Url Shortener

  • Wednesday, October 5, 2016
  • by enginkartal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

lighturl

Open Source Url Shortener, (*1)

Build Status, (*2)

Requirements

  • PHP 5.6.4+

Installation

Via Composer Install

$ composer require lighturl/lighturl

Database Migration

use Phinx PHP Database Migrations, (*3)

edit phinx.yml
$ phinx migrate -e <development - production - testing>

Docs

Coming soon, (*4)

Quick Start

``` php require 'vendor/autoload.php'; use Illuminate\Database\Capsule\Manager as Capsule; use LightUrl\LightUrl;, (*5)


``` php $capsule = new Capsule; $capsule->addConnection([ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'lighturl', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ]); // Make this Capsule instance available globally via static methods... (optional) $capsule->setAsGlobal(); // Setup the Eloquent ORM... (optional; unless you've used setEventDispatcher()) $capsule->bootEloquent(); $connection=$capsule->getConnection();

``` php $light = new LightUrl($connection);, (*6)

if(isset($_GET['shortkey'])){, (*7)

 $light->redirectTo($_GET['shortkey']);

}else {, (*8)

$key = $light->lighten($heavyUrl);, (*9)

echo $key; } ```, (*10)

Changelog

Details changes for each release are documented in the release notes., (*11)

License

MIT, (*12)

The Versions

05/10 2016

dev-master

9999999-dev https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

url cms url-shortener shortener

05/10 2016

1.0.3

1.0.3.0 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

url cms url-shortener shortener

19/09 2016

1.0.2

1.0.2.0 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

url cms url-shortener shortener

18/09 2016

1.0.1

1.0.1.0 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

url cms url-shortener shortener

18/09 2016

1.0.0

1.0.0.0 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

The Development Requires

url cms url-shortener shortener

17/09 2016

1.0.0-beta.3

1.0.0.0-beta3 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

url cms url-shortener shortener

11/09 2016

1.0.0-beta.2

1.0.0.0-beta2 https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

url cms url-shortener shortener

06/09 2016

1.0.0-beta

1.0.0.0-beta https://lighturl.in

Open Source Url Shortener

  Sources   Download

MIT

The Requires

 

url cms url-shortener shortener