Skip to content

Commit 92eb261

Browse files
committed
更新readme,提交composer.lock
1 parent 5479b0f commit 92eb261

File tree

3 files changed

+255
-39
lines changed

3 files changed

+255
-39
lines changed

.gitignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
.idea
2-
/app/config.php
3-
vendor
4-
/composer.lock
5-
/config.yaml
1+
.idea
2+
/app/config.php
3+
vendor
4+
/config.yaml

README.md

+42-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
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+
[![Latest Stable Version](https://poser.pugx.org/takashiki/ourls/v/stable)](https://packagist.org/packages/takashiki/ourls)
4+
5+
[![Total Downloads](https://poser.pugx.org/takashiki/ourls/downloads)](https://packagist.org/packages/takashiki/ourls)
6+
7+
[![Latest Unstable Version](https://poser.pugx.org/takashiki/ourls/v/unstable)](https://packagist.org/packages/takashiki/ourls)
8+
9+
[![License](https://poser.pugx.org/takashiki/ourls/license)](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)

composer.lock

+209
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)