2017 © Pedro Peláez
 

library ourls

A url shorten service system base on hash id

image

takashiki/ourls

A url shorten service system base on hash id

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 56 Forks
  • 1 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Ourls

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Ourls是一个基于发号和hashid的短网址服务,灵感来源于知乎上关于短址算法的一个讨论—— http://www.zhihu.com/question/29270034。, (*2)

特征/Feature

Ourls会根据sha1值来判断原url在数据库中是否已存在,若不存在则新增记录后对记录id进行hash,产生短网址。, (*3)

Ourls会对输入的url进行标准化处理,若为缺少scheme的url,会默认自动加上http://, 并且会对url的query参数进行排序和urlencode等。, (*4)

演示/Demo

在线演示/Online Demo, (*5)

安装/Install

下载源码后运行composer install安装依赖包,或者运行composer create-project takashiki/ourls。, (*6)

然后将urls.sql导入数据库中,将app目录下config.sample.php重命名为config.php并按自己实际情况修改相关配置项。, (*7)

git clone and composer install or composer create-project takashiki/ourls, (*8)

import urls.sql to your database, (*9)

rename app/config.sample.php to app/config.php, (*10)

modify the config file according to your situation, (*11)

License

Ourls is open-sourced software licensed under the MIT license, (*12)

The Versions

26/02 2016

dev-analysis-z9mlrw

dev-analysis-z9mlrw https://github.com/takashiki/ourls

A url shorten service system base on hash id

  Sources   Download

MIT

The Requires

 

hashids url shorten

22/09 2015
20/09 2015

v0.9.3

0.9.3.0 https://github.com/takashiki/ourls

A url shorten service system base on hash id

  Sources   Download

MIT

The Requires

 

hashids url shorten