Php recommends developing an interface framework for APP

1. Do you need a framework? the framework loads too many files by default, which hinders performance
. two The framework comes with interface verification (to prevent arbitrary calls), version management (APP version upgrade is fast), etc., if there is no accepted solution


dingo API: A RESTful API package for the Laravel framework
Recently, it seems to support Lumen, which should be suitable for API.


choose Phalcon


main post, you directly ask yourself the framework you are familiar with, how to implement rest api, this is not familiar, that is not familiar.

there is something wrong with your question, so you shouldn't ask it that way.


personal experience:
-composer + slim +.
-however, it is really convenient to build restful-api with Yii 2.


version iteration problem can be handled like this
Host/version/controller/action
Version 11 = 1.1
111 to 1.1.1


personal experience, according to the interface naming convention of the project design, it is best to write your own lightweight framework.
/ / recommend an MyPHP open source library, GitHub open source address: https://github.com/MoonLord-LM/MyPHP
http://www.moonlord.cn


Phalcon , it's just a php extension written in c, so it's fast, and it's easy to take a look at api. http://phalcon.5iunix.net/reference/tutorial-rest.html

.

the landlord can take a look at restful of YII2 . As long as the model defines the rules, two lines of code can do

.

composer & symfony/http-foundation is enough

after half a year, PSR7 is better


slim, a lightweight micro-framework, is recommended. Routing is easy to use and is originally used for micro-applications such as api

.

there are a number of php frameworks, and there is always a suitable one. http://www.nfangbian.com/fang.. Personal advice: laravel and phalcon are both good choices

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e52817-451d7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e52817-451d7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?