|
1 |
| -# Ourls |
2 |
| - |
3 |
| -Ourls是一个基于发号和hashid的短网址服务,灵感来源于知乎上关于短址算法的一个讨论—— |
4 |
| -[http://www.zhihu.com/question/29270034](http://www.zhihu.com/question/29270034)。 |
5 |
| - |
6 |
| -## 特征/Feature |
7 |
| - |
8 |
| -Ourls会根据sha1值来判断原url在数据库中是否已存在,若不存在则新增记录后对记录id进行hash,产生短网址。 |
9 |
| - |
10 |
| -Ourls会对输入的url进行标准化处理,若为缺少scheme的url,会默认自动加上`http://`, |
11 |
| -并且会对url的query参数进行排序和urlencode等。 |
12 |
| - |
13 |
| -## 演示/Demo |
14 |
| - |
15 |
| -[在线演示/Online Demo](http://skyx.in) |
16 |
| - |
17 |
| -## 安装/Install |
18 |
| - |
19 |
| -下载源码后运行`composer install`安装依赖包,或者运行`composer create-project takashiki/ourls`。 |
20 |
| - |
21 |
| -然后将urls.sql导入数据库中,将app目录下config.sample.php重命名为config.php并按自己实际情况修改相关配置项。 |
22 |
| - |
23 |
| -> git clone and composer install or composer create-project takashiki/ourls |
24 |
| -
|
25 |
| -> import urls.sql to your database |
26 |
| -
|
27 |
| -> rename app/config.sample.php to app/config.php |
28 |
| -
|
29 |
| -> modify the config file according to your situation |
30 |
| -
|
31 |
| -### License |
32 |
| - |
33 |
| -Ourls is open-sourced software licensed under the |
34 |
| -[MIT license](http://opensource.org/licenses/MIT) |
| 1 | +# Ourls |
| 2 | + |
| 3 | +[](https://packagist.org/packages/takashiki/ourls) |
| 4 | + |
| 5 | +[](https://packagist.org/packages/takashiki/ourls) |
| 6 | + |
| 7 | +[](https://packagist.org/packages/takashiki/ourls) |
| 8 | + |
| 9 | +[](https://packagist.org/packages/takashiki/ourls) |
| 10 | + |
| 11 | +Ourls是一个基于发号和hashid的短网址服务,灵感来源于知乎上关于短址算法的一个讨论—— |
| 12 | +[http://www.zhihu.com/question/29270034](http://www.zhihu.com/question/29270034)。 |
| 13 | + |
| 14 | +## 特征/Feature |
| 15 | + |
| 16 | +Ourls会根据sha1值来判断原url在数据库中是否已存在,若不存在则新增记录后对记录id进行hash,产生短网址。 |
| 17 | + |
| 18 | +Ourls会对输入的url进行标准化处理,若为缺少scheme的url,会默认自动加上`http://`, |
| 19 | +并且会对url的query参数进行排序和urlencode等。 |
| 20 | + |
| 21 | +## 演示/Demo |
| 22 | + |
| 23 | +[在线演示/Online Demo](http://skyx.in) |
| 24 | + |
| 25 | +## 安装/Install |
| 26 | + |
| 27 | +下载源码后运行`composer install`安装依赖包,或者运行`composer create-project takashiki/ourls`。 |
| 28 | + |
| 29 | +然后将urls.sql导入数据库中,将app目录下config.sample.php重命名为config.php并按自己实际情况修改相关配置项。 |
| 30 | + |
| 31 | +> git clone and composer install or composer create-project takashiki/ourls |
| 32 | +
|
| 33 | +> import urls.sql to your database |
| 34 | +
|
| 35 | +> rename app/config.sample.php to app/config.php |
| 36 | +
|
| 37 | +> modify the config file according to your situation |
| 38 | +
|
| 39 | +### License |
| 40 | + |
| 41 | +Ourls is open-sourced software licensed under the |
| 42 | +[MIT license](http://opensource.org/licenses/MIT) |
0 commit comments