Git Product home page Git Product logo

ourls's Introduction

Ourls

Latest Stable Version Total Downloads Latest Unstable Version License

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

ourls's People

Contributors

takashiki avatar xiaooloong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.