Skip to content

abolfazlrastegar/cms-php-short-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cms php

short links and url

run migration

 #Create Database and table users,links
 php database/migrations.php

example address api

 #login and register
 http://localhost/test/api/login/?username=abolfazl75&password=123456

#show links
http://localhost/test/api/show/link/.

#create link
 http://localhost/test/api/create/?url=https://www.youtube.com/watch.

#edit link
 http://localhost/test/api/edit/?id=5&url=https://dzone.com/articles/how-to-create-a-simple-and-efficient-php-cache&short=http://localhost/test/ffdDD87.

#delete link
 http://localhost/test/api/delete/?id=7

create route

route("/test/api/create/", function () {
return 'test';
});

#dynamic route
route("/test/api/create/(.+)/?", function ($id, $data){
return [$id, $data];
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published