{"id":13669195,"url":"https://github.com/takashiki/Ourls","last_synced_at":"2025-04-27T01:32:51.547Z","repository":{"id":57064666,"uuid":"42776556","full_name":"takashiki/Ourls","owner":"takashiki","description":"url shorten service/短网址服务","archived":false,"fork":false,"pushed_at":"2023-04-16T18:39:51.000Z","size":35,"stargazers_count":211,"open_issues_count":2,"forks_count":66,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-12-03T01:18:20.672Z","etag":null,"topics":["composer","demo","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takashiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-09-19T14:43:41.000Z","updated_at":"2024-07-22T03:56:05.000Z","dependencies_parsed_at":"2024-01-17T04:18:55.934Z","dependency_job_id":null,"html_url":"https://github.com/takashiki/Ourls","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":"0.11428571428571432","last_synced_commit":"e7789805f044816a480b36d6273f003814da3cc1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashiki%2FOurls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashiki%2FOurls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashiki%2FOurls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takashiki%2FOurls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takashiki","download_url":"https://codeload.github.com/takashiki/Ourls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251077102,"owners_count":21532607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","demo","php"],"created_at":"2024-08-02T08:01:05.691Z","updated_at":"2025-04-27T01:32:46.534Z","avatar_url":"https://github.com/takashiki.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Ourls\n\n[![Latest Stable Version](https://poser.pugx.org/takashiki/ourls/v/stable)](https://packagist.org/packages/takashiki/ourls)\n[![Total Downloads](https://poser.pugx.org/takashiki/ourls/downloads)](https://packagist.org/packages/takashiki/ourls)\n[![Latest Unstable Version](https://poser.pugx.org/takashiki/ourls/v/unstable)](https://packagist.org/packages/takashiki/ourls)\n[![License](https://poser.pugx.org/takashiki/ourls/license)](https://packagist.org/packages/takashiki/ourls)\n\nOurls是一个基于发号和hashid的短网址服务，灵感来源于知乎上关于短址算法的一个讨论——\n[http://www.zhihu.com/question/29270034](http://www.zhihu.com/question/29270034)。\n\n## 特征/Feature\n\nOurls会根据sha1值来判断原url在数据库中是否已存在，若不存在则新增记录后对记录id进行hash，产生短网址。\n\nOurls会对输入的url进行标准化处理，若为缺少scheme的url，会默认自动加上`http://`，\n并且会对url的query参数进行排序和urlencode等。\n\n## 演示/Demo\n\n[在线演示/Online Demo](http://skyx.in)\n\n## 安装/Install\n\n下载源码后运行`composer install`安装依赖包，或者运行`composer create-project takashiki/ourls`。\n\n然后将urls.sql导入数据库中，将app目录下config.sample.php重命名为config.php并按自己实际情况修改相关配置项。\n\n\u003e git clone and composer install or composer create-project takashiki/ourls\n\n\u003e import urls.sql to your database\n\n\u003e rename app/config.sample.php to app/config.php\n\n\u003e modify the config file according to your situation\n\n### License\n\nOurls is open-sourced software licensed under the\n[MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakashiki%2FOurls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakashiki%2FOurls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakashiki%2FOurls/lists"}