简体   繁体   中英

How to create a Rest server in PHP

I'm going to create a Restful web service API using PHP. I've googled and found how to create a rest client, but I want to know how to create rest server instead.

I already have a MySQL database to retrieve the data but I don't know how to output my results in XML format.

You can take a look at PHP-CRUD-API , which is an extensible PHP script that I wrote that does exactly what you want: provide a REST API based on a MySQL Database.

Take a look at RockWall engine. The main feature of RockWall is multiple REST requests by single HTTP request.

RockWall REST engine site

Take a look at a framework like FRAPI that helps you build REST services with minimum effort.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM