Using PHP MVC as Backend for iOS App

apiiosjsonmvcPHP

So, essentially, the question is, to develop a PHP back-end to an iOS application, would you implement an MVC architecture on the PHP side? Or no, since the client side (iOS) already has an MVC architecture?

Or, since we're just passing happy little JSON packets in between front / back end, both server and client should employ MVC architecture? Thus we can implement "private api key" authentication and other security measures at the device level?

Any ideas suggestions welcomed.

Best Answer

I use MVC in both. Yes the views server-side are very simple, but that's ok. Still nice to have separation of concerns for all the usual reasons.

Related Topic