Download the PHP package ycrao/tinyme without Composer
On this page you can find all versions of the php package ycrao/tinyme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package tinyme
Short Description a tiny php framework based on flight and medoo.
License MIT
Homepage https://github.com/ycrao/tinyme
Informations about the package tinyme
TinyMe
A tiny php framework based on flight and medoo.
IntroductionPage | 简体中文读我
Installation
Just like Laravel
installation, set public
directory as server root path in vhost.conf
and using composer
to install or update packages and so on. You can do these in your terminal like below:
You can view this project page by typing http://127.0.0.1:9999
url in your browser.
API Service
Please import sql\tinyme.sql
to your local MySQL database, then modify .env
file configuration.
Route
Method | Route or URI | Note |
---|---|---|
post |
/api/login |
Get access-token by logining account. |
get |
/api/pages |
Get current user pages with pagination. |
post |
/api/page |
Create a new page. |
get |
/api/page/@id |
Get page by specified id. |
put |
/api/page/@id |
Update page by specified id. |
delete |
/api/page/@id |
Delete page by specified id. |
API error code
Code | Note |
---|---|
500 | fail or error. |
401 (Unauthorized) | access token already expired. |
403 (Forbidden) | illegal or incorrect credentials. |
404 (Not Found) | api or route not existed. |
200 (OK) | success. |
post api/login
Using email and password to login and get access token. Please recall login api when token is expired, do not call this api frequently when old token(s) not expired.
Request Example
Response Example
Using 200
as code
when success.
Using non-2xx (403
、500
etc) digital when fail or error.
get api/pages
Get current user pages with pagination.
Request Example
Response Example
post api/page
Create a new page.
Request Example
Response Example
get api/page/@id
Get page by specified id.
Request Example
Response Example
put api/page/@id
Update page by specified id.
Request Example
Response Example
delete /api/page/@id
Delete page by specified id.
Request Example
Response Example
Documentation
Kernel
based on mikecao/flight
, official website : http://flightphp.com/ , https://github.com/mikecao/flight .
Cache
based on doctrine/cache
, official website : http://docs.doctrine-project.org/en/latest/reference/caching.html , https://github.com/doctrine/cache .
Log
based on katzgrau/klogger
, official website : https://github.com/katzgrau/KLogger .
Database and Model
based on catfan/medoo
, official website : https://github.com/catfan/medoo , http://medoo.in/doc .
Reference
License
The TinyMe framework is open-sourced software licensed under the MIT license.
All versions of tinyme with dependencies
mikecao/flight Version 1.3.*
catfan/medoo Version 1.6.*
katzgrau/klogger Version 1.*
doctrine/cache Version 1.4.*
vlucas/phpdotenv Version 2.0.*