create PHP REST service

Asked

Viewed 851 times

0

Good morning.

I need to create a REST API in PHP in the backend and frontend show this data with Angularjs.

backend: API REST in PHP brings data from database.

frontend: angular js consumes the service and makes it available in html 5.

Doubt:

Should I use a php framework to build this service? It is best to consume the service only using javascript or php usage as well?

thank you.

1 answer

1


Hello Friend there are several ways to create REST with PHP the simplest of them and using the Slim Framework.

See the post below to get an idea of how to create a REST.

http://imasters.com.br/linguagens/php/aprenda-a-usar-o-restful-com-php-e-slim-framework/? trace=1519021197&source=single

Consume the REST Voce can use in Angularjs, recommend Voce take a look at the link below.

http://rafaell-lycan.com/2015/angular-consumindo-servicos-restful/

I work with REST in PHP with Slim and consuming with Angularjs.

This would be an option More all depends on the type of project and what Voce wants to do.

I hope I’ve helped.

  • That’s exactly what I need.. I need to consume with angular and display the data in the browser

Browser other questions tagged

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