api - I want to use laravel as the app backend, but dingo cannot be installed. Please integrate the project.
迷茫2017-05-16 16:55:15
0
4
569
Like the title
Use laravel to make an api interface. I have read many articles, but none of them are complete. Novices have no way to start. - Please give advice from experts -
Laravel was a little more troublesome in the early stage. The Chinese information was relatively scattered (including the official English document - -) and I couldn't understand it at first. .
If you don’t know how to install django, just pull it down - you can’t even install it, let alone develop it.
The web api interface is to originally open a web page and return text/html and then display the content. Using the api is to return application/json and then display the content. The main difference is this. It depends on LZ’s business needs. Use whichever one is suitable. It doesn’t matter if it’s a framework or not, why do you have to go through all the trouble of installing Laravel and Django?
If you use php, if you don’t use a framework, how do you handle routing, how do you write a database, and how do you ensure that the website is not attacked by CSRF. Directly writing bare *.php files has faster performance, but how can we ensure fast development speed? Many people start their first project with a framework.
The best framework for python is flask? tornado? bottle? diango?
The best web framework for php is: laravel? slim framework? ci?
Laravel was a little more troublesome in the early stage. The Chinese information was relatively scattered (including the official English document - -) and I couldn't understand it at first. .
If you don’t know how to install django, just pull it down - you can’t even install it, let alone develop it.
The web api interface is to originally open a web page and return text/html and then display the content. Using the api is to return application/json and then display the content. The main difference is this. It depends on LZ’s business needs. Use whichever one is suitable. It doesn’t matter if it’s a framework or not, why do you have to go through all the trouble of installing Laravel and Django?
Come on, I have recorded a laravel RESTful API series. If you are interested, you can take a look
https://laravist.com/series/pe-into-restful-api-with-laravel
Use composer command directly
If you use php, if you don’t use a framework, how do you handle routing, how do you write a database, and how do you ensure that the website is not attacked by CSRF. Directly writing bare *.php files has faster performance, but how can we ensure fast development speed? Many people start their first project with a framework.
The best framework for python is flask? tornado? bottle? diango?
The best web framework for php is: laravel? slim framework? ci?
What is the correct answer?