takashiki/Ourls: url shorten service/短网址服务
2019-04-03 21:45:51
Author: github.com(查看原文)
阅读量:202
收藏
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
url shorten service/短网址服务
Permalink
Type |
Name |
Latest commit message |
Commit time |
|
Failed to load latest commit information. |
|
app
|
添加短网址显示二维码功能
|
Jan 7, 2017
|
|
public
|
fix qrcode text
|
Jan 13, 2017
|
|
.gitignore
|
更新readme,提交composer.lock
|
Mar 13, 2017
|
|
.travis.yml
|
php-5.5 not supported
|
May 29, 2017
|
|
LICENSE
|
first version finished
|
Sep 20, 2015
|
|
README.md
|
remove useless new line in README.md
|
Mar 13, 2017
|
|
composer.json
|
php-5.5 not supported
|
May 29, 2017
|
|
composer.lock
|
update dependencies, add travis ci integration
|
May 29, 2017
|
|
urls.sql
|
修复数据库 ip 存储字段
|
Aug 24, 2016
|
Ourls是一个基于发号和hashid的短网址服务,灵感来源于知乎上关于短址算法的一个讨论——
http://www.zhihu.com/question/29270034。
特征/Feature
Ourls会根据sha1值来判断原url在数据库中是否已存在,若不存在则新增记录后对记录id进行hash,产生短网址。
Ourls会对输入的url进行标准化处理,若为缺少scheme的url,会默认自动加上http://
,
并且会对url的query参数进行排序和urlencode等。
演示/Demo
在线演示/Online Demo
安装/Install
下载源码后运行composer install
安装依赖包,或者运行composer create-project takashiki/ourls
。
然后将urls.sql导入数据库中,将app目录下config.sample.php重命名为config.php并按自己实际情况修改相关配置项。
git clone and composer install or composer create-project takashiki/ourls
import urls.sql to your database
rename app/config.sample.php to app/config.php
modify the config file according to your situation
License
Ourls is open-sourced software licensed under the
MIT license
文章来源: https://github.com/takashiki/Ourls
如有侵权请联系:admin#unsafe.sh