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 FlightPHP and Medoo.
License MIT
Homepage https://github.com/ycrao/tinyme
Informations about the package tinyme
TinyMe V2
A tiny PHP framework based on FlightPHP and Medoo.
IntroductionPage | Old Version TinyMe
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.
Screenshots
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 flightphp/core repo , official website : https://flightphp.com/ .
Cache
based on flightphp/cache repo , official website : https://docs.flightphp.com/en/v3/awesome-plugins/php-file-cache .
Log
based on monolog/monolog repo , official website : https://seldaek.github.io/monolog/ .
Database and Model
based on catfan/medoo repo , official website : https://medoo.in/doc .
Reference
License
The TinyMe framework is open-sourced software licensed under the MIT license.
All versions of tinyme with dependencies
flightphp/core Version ^3.0
catfan/medoo Version ^2.1
vlucas/phpdotenv Version ^5.6
monolog/monolog Version ^3.0
flightphp/cache Version ^1.1
ext-json Version *