Skip to content

cappd.me is a link shortener in PHP 5.3 using the Slim framework

License

Notifications You must be signed in to change notification settings

yucombinator/cappdme

Repository files navigation

cappd.me link shortener

cappd.me is a lightweight link shortener in PHP 5.3 using the Slim framework, and NotORM for database access. It supports setting an expiration date and total cap before a link stops working and is then deleted from the database. It also has a RESTful API to allow quick link creation.

see http://cappd.me

Requirements

Web server with a database supported by PDO (mysql), PHP 5.3+.

Config

-Fill in the required information in index.php

-Run the following sql query to create the necessary table

-- 
-- Table structure for table `links`
-- 
CREATE TABLE `links` (
  `id` int(50) NOT NULL auto_increment,
  `url` varchar(200) NOT NULL,
  `expiration_time` varchar(50) NOT NULL,
  `daily_cap` int(50) NOT NULL default '0',
  `total_cap` bigint(50) NOT NULL default '0',
  `current_daily_cap` int(50) NOT NULL default '0',
  `current_total_cap` bigint(50) NOT NULL default '0',
  KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1000 DEFAULT CHARSET=latin1 AUTO_INCREMENT=1000 ;

-See Slim documentation on how to set it up

Released under Creative Commons License
cappd.me by Yu Chen Hou is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

About

cappd.me is a link shortener in PHP 5.3 using the Slim framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published