Requesting APIs with Database for Angles

2

What APIs to do database requests (preferably mysql) that I have available to work with AngularJS, some that are simpler to use and that run on any server, I would use nodeJS more the servers to run it are more expensive and I can not afford it at the moment ...

Remembering that I am a beginner developer and my base language is PHP

    
asked by anonymous 10.11.2016 / 04:45

1 answer

2

Basically you could use any API you want to work with AngularJS, it does not make any difference what technology you will use on the server side because in the end it is a WebService that only transmits data (in JSON format).

Since you already have experience with php and are a beginner developer, there are some technologies that would go well, for simplicity and ease of handling, however there is no escape from understanding the operation of web applications and some tools that are used in these applications.

So, to make the whole work easier, you would need a micro-framework (a more simplified or minimalist version of a web framework) and a ORM for php. Fortunately, in this we have a great diversity of frameworks and ORMs free and open source, so it will not be difficult to choose one.

I particularly recommend the set offered by Laravel , which is the micro-framework Lumen in conjunction with ORM Eloquent . However, a number of frameworks also support this combination, such as Phalconphp and Fuelphp , and others that offer these tools in isolation as Slim for micro applications and Doctrine as ORM.

At the end of the day, it turns out to be an opinionated question, everyone should choose the framework that best suits their needs and conveniences. But for example, if you use Lumen with Eloquent, your application takes on a much cleaner and more intuitive design than pure php.

    
10.11.2016 / 11:47