Developing Apis with Laravel or Micro Frameworks?

Asked

Viewed 95 times

1

Good night! After analyzing my project I decided to divide the whole project into Apis, it will have an api for the login, another for client registration and so on. Ah beats such doubt will be that the Arable is the best option for development of Apis? I read in some articles that the best option for these videos is to use micro frameworks like Zend Expressive what is your experience on this?

Thank you

  • 2

    In my experience, if it is to use PHP, "with nothing" is the best framework. Usually "extras" from third parties only complicate the layers. Especially for Apis, that the more independence, the easier maintenance. The biggest proof that FW in PHP is usually a bad idea is the very code you find on the web made with them. Many people adopt for not mastering programming and thinking that the FW will make life easier (and the code produced remains crude). There is even a portion that knows how to use FW in PHP and rightly uses it in specific cases, but it is far from being a majority (and these end up making their own).

1 answer

1


Particularly I like much more the idea of using micro-frameworks, I see no reason to use such a large and complex framework that somehow causes extra weight and more complexity in my applications and there are solutions that are much simpler and cleaner, an example within PHP is the micro-framework Flight which aims precisely to build API s, with almost no configuration and very few lines of code you already have your first functional route.

In short I highly recommend the idea of using micro-frameworks and adding them up as the project grows, these larger frameworks I would only start using them if I already saw at the beginning of the project that it would be very large and complex.

Link to the micro-framework: http://flightphp.com/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.