This is advanced URL Shortener, which allows you to create your shorts URLs, for example domain.name/a3vd. Also users will have possibility to share links in popular social networks or save link as a QR-Code. In addition, this application has admin panel. You can easy customize any part of application starting with language and ending with social settings. Also flexible and advanced url search module, in admin panel, makes your work easier to control URLs.

Applications demo

Site: http://short.php5developer.com
Admin panel http://short.php5developer.com/admin
Login: admin
Password: admin

Features

  • Your own URL shortening service
  • Admin URL Managment system, advanced searching and sorting
  • QR Code
  • Autocopy button
  • Social Sharing
  • SEO, Og propirties customizaiotn
  • Adsense, analytics support
  • Changing interface language
  • Like buttons
  • Google, Bing, Yandex verification
  • Clean and friendly user interface
  • Installation file
  • Developer API
  • Statistic

Installation

Run installation file (http://domain.name/install.php). Follow installation instructions. AFTER INSTALLATION DO NOT FORGET TO REMOVE INSTALL.PHP FILE AND CHANGE ADMIN DATA IN ADMIN PANEL. Note. If your main index.php file located not in the root folder - you need to add RewriteBase /subfolder/ into .htaccess file after RewriteEngine on

Developer API

Developers can easy use this API by request http://domain.name/api?url=your_long_url URL. This service can handle 3 response methods:
  • XML
  • JSON
  • Array (serialized)
Example: http://domain.name/api?url=url&method=array You will get response as serialized array

Documentation

http://docs.php5developer.com/url-shortener/

Updates

v 0.4 – 2014.06.05

Unique title on "redirect" page
Possibility to set limit of requests for users
One URL can be shortened only once.
Already bought?
1. Run following queries into DB.
2. Add/replace below listed files.
3. Clean cache direcotry (~app/runtime/cache/)

NOTE! Make DB/Code backup before do changes.
Queries:
ALTER TABLE `sl_url` ADD COLUMN `Md5Url` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
UPDATE `sl_url` set Md5Url = MD5(Url);
ALTER TABLE `sl_url` ADD INDEX `ix_md5url` ( `Md5Url` );
ALTER TABLE `sl_url` ENGINE = InnoDB;
INSERT INTO `sl_lang_settings` (`Key`, `Value`, `end`) VALUES ('Redirect_Title', 'You are going to %s', 'front');
DROP TABLE IF EXISTS `sl_request_count`;
CREATE TABLE `sl_request_count` (
 `day` date NOT NULL,
 `ip` varchar(46) NOT NULL,
 `total` int(10) unsigned NOT NULL,
 PRIMARY KEY (`day`,`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE  `sl_basic_settings` ADD  `API_Request` INT unsigned NOT NULL DEFAULT  '1000' AFTER  `Redirect`;
Files:
~app/models/Basic.php
~app/views/backend/settings/basic.php
~app/components/CShortlink.php
~app/components/FrontEndController.php
~app/models/Shortlink.php
~app/controllers/front/ApplicationController.php
~app/controllers/front/ApiController.php
~app/data/url_shortener
~js/frontend.js
~app/views/frontend/error.php
~app/views/frontend/layouts/main.php

New files:
app/components/ShortUrlAccessFilter.php
app/commands/ClearstatCommand.php
app/config/console.php


Version 0.3

- Bug fix
- QR-Code generator works without curl library

Version 0.2

- Added countdown timer before redirect.
- Documentation has been updated.

Version 0.1

- Bug fixes

by
by
by
by
by
by