且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

你如何在PHP中创建一个REST API?

更新时间:2023-11-30 12:54:46

据当你理解了基本面的pretty容易。基本上你想要映射到修改数据,无论这些数据在数据库,XML文件,CSV文件,文本文件,取决于你的车型。

It's pretty easy when you understand the fundamentals. Basically you want controllers mapped to actions that modify data, whether that data's in a database, XML file, CSV file, text file depends on your models.

我创建了一个简单的API框架入门,你可以看看,并开始使用:https://github.com/martinbean/api-framework

I created a simple API framework starter that you can take a look at and get started with: https://github.com/martinbean/api-framework