Version: 1.0.0
Link shortening system (PHP) pure php project with custom micro framework.
Install this project via Composer:
composer create-project irpcpro/tele-link
- php: "^7.4",
- vitodtagliente/pure-routing: "^1.0",
- rych/phpass: "^2.0",
- firebase/php-jwt: "^6.3",
- ext-json: "*",
- ext-mysqli: "*"
for set your database configuration, edit config/app-config.php
Run this script to create database tables
~ composer run-script sql-creator
For run application, just need to run server on .\public\
~ cd .\public\
~ php -S localhost:8080
Or run server on .\public\
directory.
{{host}}/api/v1/user/login
{
"username": "admin",
"password": "123"
}
{{host}}/api/v1/shortener/create
{
"link": "https://facebook.com"
}
{{host}}/api/v1/shortener/get-all?limit=10
{{host}}/api/v1/shortener/delete/{link_id}
{{host}}/api/v1/shortener/edit
{
"link_id": 5,
"link": "http://google-new.com"
}