项目作者: neoxr

项目描述 :
Web Script URL Shortener Without Database MYSQL
高级语言: PHP
项目地址: git://github.com/neoxr/Yocs.git
创建时间: 2020-12-04T04:45:41Z
项目社区:https://github.com/neoxr/Yocs

开源协议:

下载


Yocs

Web Script URL Shortener Without Database MYSQL

Configuration

First you have to change the config file, you can find it in here.

  1. // put your web address
  2. define ('url', 'http://localhost', true);
  3. // data as data.json (change this it's very important dude)
  4. define ('db', 'data', true);
  5. // setup as setup.json
  6. define ('setup', 'setup', true);

Setup

Next change the setup.json file.

  1. {
  2. "name" : "Yocs URL Shortener",
  3. "desc" : "Cut your long URL in here!",
  4. "keyword" : "url shortener, url cutter, bit.ly, goo.gl, s.id",
  5. "ogimg" : "/vendor/static/images/logo.jpg"
  6. }

API

I’ve created a file for API with the GET method.

  1. https://site.com/api.php?url={long_url}

and result look like this

  1. {
  2. "error" : false,
  3. "url" : "https://site.com/3sEjs"
  4. }

Statistic

Add parameter /s for view visitor stat count.

  1. http://site.com/WieUo/s

Demo

Here : http://crop.us.to