In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "the advantages and disadvantages of laravel framework compared with other frameworks". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the advantages and disadvantages of laravel framework compared with other frameworks.
Advantages:
1. The code is relatively clear and easy to understand, similar to English sentences. The keyword is a function. For example, get all the data of a table in the database:
$article=new Article;$articles=$article- > all (); / / so you get all the fields of all the records in the articles table; $count = $article- > where ('class_id','=', 1)-> count (); / / does it make sense at a glance? Find the records with a category id of 1 and calculate the number.
There are too many such examples. Let me cite these two examples.
2. The document is very rich, and the community is also very active. It now has the highest share in the world, and basically all the questions can be answered.
3. A large number of third-party open source libraries (more than 5500 packages included in composer) can quickly and easily implement module functions. Third-party excellent packages officially have detailed user manuals. For example: laravel/collective
4. The security mechanism is very complete. There are almost 80 kinds of data verification for submitting forms, and random _ token verification is generated when submitting data to avoid illegal submission and cross-domain attacks.
5. Middleware and routing, filter and control access, judge the validity of requests before calling function classes and methods, and avoid illegal requests.
6. The error handling mechanism is simple and easy to use. If an error occurs, you can directly call $error- > all () to output all the errors, especially for form verification.
Disadvantages:
1. It is a little more complicated, and it is slower to get started than the general framework.
2. A large number of third-party packages are referenced, but we only use some of the methods in the class, so the code is somewhat redundant.
3. The performance is slightly better than the general framework, but it is less efficient than small frameworks such as yaf.
Summary:
Laravel is a young framework, the number of users in the world, well-documented, a large number of third-party excellent packages for reference, suitable for collaborative development of large-scale websites. On the performance issue, I would like to say my own opinion, the bottleneck of the Web system developed by PHP generally does not lie in the implementation level of the language itself, the time-consuming of language execution accounts for less than 1% of the whole system, and the main time-consuming is in network communication. The efficiency comparison between the source PHP and the PHP under the framework can only be said to be used in different situations. The output hello world of the source PHP is hundreds of times faster than that of the frame, but the framework is not used to write hello word. Shooting mosquitoes with their bare hands must be hundreds of times more efficient than anti-aircraft guns, but are anti-aircraft guns used to shoot mosquitoes?
At this point, I believe you have a deeper understanding of the "advantages and disadvantages of the laravel framework compared with other frameworks". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.