1 Star 0 Fork 21

cppfuns / Ourls

forked from 天心流水 / Ourls 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Ourls

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

MIT License Copyright (c) 2011 Mike Cao <mike@mikecao.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

短网址服务 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/softwareace/Ourls.git
git@gitee.com:softwareace/Ourls.git
softwareace
Ourls
Ourls
master

搜索帮助