Frameworks are emerging in endlessly
PHP’s frameworks are dazzling, from ZendFramework and CodeIgniter in ancient times to Laravel and Yii, from ThinkPHP to Symfony, from Yaf to the following Hyperf and Easyswoole, which use swoole as the basic component, and Spiral, which combines go and php.
With the continuous upgrading of PHP version, the changes brought about by PHP's own syntax guide the continuous updating of the framework. In the projects currently run by our company, more than four frameworks and their differences are still used. There are multiple versions of PHP from ZendFramework1 to Laravel8. However, this situation cannot be improved for a while due to the existence of ancient projects, which brings varying degrees of trouble to development and operation and maintenance students.
Enjoyed byLaravel
Getting to the point, Laravel is known as an elegant and fast framework. From the perspective of project experience, I personally feel that Laravle is very suitable for teams with more than 5 projects or services. If it is a single project, it depends on personal preferences and project implementation requirements.
Of course, after deciding to use a certain framework, the entire team will gradually tend to accept it, no matter what framework it is. The important reasons why we decided to use Laravel in the new project are:
1. The team members are familiar with it and hate the inconsistency caused by the simultaneous development of multiple frameworks.
2. Helps to formulate development specifications and improve the overall development efficiency of the team
3. Facilitates the division and separation of internal projects
From one’s own situation Summarize the following advantages:
- The framework structure and layers are clear, easy to get started
- The components are rich and ready to use out of the box, such as queue, event, artisan, console, cache, etc.
- The community is active and problems can be solved quickly
- The framework is actively updated, which helps us keep up with the new usage methods and development concepts of PHP
Preparation work
Next I will use PHP8 Laravel8 to share the following articles
First, environment preparation is required:
- Install Docker
- Download code: https://github.com/nobody05/laravel-project.git
- Use the Dockerfile in the project to build a local development environment
Frame list
##Framework | Learning Documents |
Laravel | https://learnku.com/docs/ laravel/8.x |
Spiral | ##https://spiral.dev/docs|
https://docs.laminas.dev/ | |
https://www.yiichina.com/doc/guide/2.0 | |
https://www.kancloud.cn/manual/thinkphp6_0/1037479 | |
https://codeigniter.org.cn/user_guide/ | |
https://hyperf.wiki/2.2/#/ | |
https: //www.easyswoole.com/Preface/intro.html | |
Code of this article: https://github .com/nobody05/laravel-project/releases/tag/v1.0