mikica/shorturl

Turns a long URL into a much shorter one.

1.01 2015-11-06 14:16 UTC

This package is auto-updated.

Last update: 2024-10-27 03:52:20 UTC


README

PHP Package - Turns a long URL into a much shorter one.

###Usage

use ShortUrl\UrlService;
UrlService::create('http://www.example.com');

Installing ShortUrl

The recommended way to install ShortUrl is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of ShortUrl:

composer.phar require mikica/shorturl

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update ShortUrl using composer:

composer.phar update