开发者

Framework to write PHP web service

开发者 https://www.devze.com 2023-02-13 01:23 出处:网络
Is there a specific framework out there for PHP to write a REST web service and expose it to JSON? Or you just basically code it...

Is there a specific framework out there for PHP to write a REST web service and expose it to JSON?

Or you just basically code it...

I am writing a REST web service, mostly to communicate with a database in MySQL, authentication, etc.开发者_开发技巧..

What advantages is there with a framework? Is it more secure?


Have a look at Frapi. Here is the documentation for it.

As for the reasoning, similar to a normal PHP framework.

  • Documentation
  • Support
  • Community
  • Multiple devs contributing
  • Not re-inventing the wheel

etc etc


Check out http://www.recessframework.org/


The package Zend.Rest [1] is very nice!

[1] http://framework.zend.com/manual/en/zend.rest.html

0

精彩评论

暂无评论...
验证码 换一张
取 消