Skip to content
This repository

Yet Another URL Shortener

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 img
Octocat-spinner-32 inc
Octocat-spinner-32 locale
Octocat-spinner-32 user
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 api.php
Octocat-spinner-32 casimir.doap
Octocat-spinner-32 changelog.markdown
Octocat-spinner-32 htaccess
Octocat-spinner-32 index.php
Octocat-spinner-32 screen.css
Octocat-spinner-32 stats.php
Octocat-spinner-32 tools.php
README.md

Cas.im/ir

Yet Another URL Shortener (or Shrinker)

Cas.im/ir is inspired by — and tries to find its way between — both lilURL and xav.cc 's sfShortUrlPlugin, the first lacking some essential features and the later needing a whole symfony environment, as the location implies.

Cas.im/ir is both available online at cas.im and as a download for self hosting.

It only needs PHP and MySQL to run. Just install it, following the instructions in the readme file, and enjoy it!

The development is hosted on GitHub, so you can fork it and help me enhance it at will!

Disclaimer: I didn't try to follow any PHP golden development rules, it just had to work as I needed.

Follow Cas.im/ir on Twitter to be notified of new releases or ask for help.

License

See the included LICENSE.md file.

Installation

Database creation

Create these tables in your MySQL database:

CREATE TABLE `casimir` (
  `short_url` varchar(50) NOT NULL DEFAULT '',
  `long_url` text NOT NULL,
  `creation_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `last_use_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `uses` int(11) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`short_url`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `casimir_stats` (
  `short_url` varchar(50) NOT NULL default '',
  `use_date` timestamp NOT NULL default '0000-00-00 00:00:00'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

Configuration

Copy user/casimir-conf.php.example to user/casimir-conf.php and edit the configuration settings.

Rename htaccess to .htaccess according to your settings.

Personalization

Optionnaly, you can add

  • a user/footer.php script that will be added after Cas.im/ir's footer
  • a user/screen.css stylesheet that will be loaded after Cas.im/ir's one
Something went wrong with that request. Please try again.