Do I need a framework to build a REST API in PHP?

后端 未结 8 916
情歌与酒
情歌与酒 2020-12-23 11:27

I am fairly new to PHP (about 8 months). I am building a web app, which is almost ready for beta. I am only now starting to think about what I would need to do to make a mob

8条回答
  •  天命终不由人
    2020-12-23 11:51

    The World is very very big, so, no one can do all things alone. Someone will help someone (who do something new) do something old. This is reason, libray and FW exist in our IT World.

    In production/live environment, anything is very more complex than we think. Until a day in future, we will need to build so many thing for our project, and we will see that those things has been built by FW completely before.

    Although just a RESTful Server, with pure PHP, we need resolve problems with: URI routing, parsing/cleaning request data, data access, dependency management, generating responses, bla bla bla...

    I recommend using Slim or Phalcon (Micro App). Slim is a easy and quickly method, but Phalcon is a effective and high performing method.

提交回复
热议问题