Skip to content
/ Yocs Public

Web Script URL Shortener Without Database MYSQL

Notifications You must be signed in to change notification settings

neoxr/Yocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yocs

Web Script URL Shortener Without Database MYSQL

Configuration

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

// put your web address
define ('url', 'http://localhost', true);

// data as data.json (change this it's very important dude)
define ('db', 'data', true);

// setup as setup.json
define ('setup', 'setup', true);

Setup

Next change the setup.json file.

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

API

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

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

and result look like this

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

Statistic

Add parameter /s for view visitor stat count.

http://site.com/WieUo/s

Demo

Here : http://crop.us.to

About

Web Script URL Shortener Without Database MYSQL

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages