Home>Article>PHP Framework> The difference between yii and laravel

The difference between yii and laravel

(*-*)浩
(*-*)浩 Original
2019-11-04 14:07:10 4298browse

The difference between yii and laravel

The difference between yii and laravel(Recommended learning:yii tutorial)

The development speed is equivalent to the two:Laravel's artisan tool has the same effect as Yii's gii. With the help of artisan tool, you can quickly create controllers, models, routes, etc.

The readability of the code is slightly better than Yii: Laravel is a bit over-designed. Laravel’s facade mode makes reading the source code under the vendor a bit confusing. Many classes in the IDE do not use third-party components. Unable to jump to read the source code.

In terms of open source ecosystem, lavarel is excellent:The laravel community is relatively active and has abundant resources. Some third-party tools can be found on github

Yii currently has two major versions: 1.1 and 2.0 Introduction?

Version 1.1 is an old version of the previous generation and is currently under maintenance.

Version 2.0 is a completely rewritten version, using the latest technologies and protocols, including dependency package manager Composer, PHP code specification PSR, namespaces, Traits, etc.

How to learn advanced design patterns?

You can directly look at the source code of lavarel or yii, which uses a lot of design patterns

Summary of Yii and lavarel framework?

The advantage of yii is its very good scalability and extremely stable performance.

The advantage of laravel is that it is easier to write neat and easy-to-maintain code. This comes from its Excellent design patterns, born for large-scale projects

The above is the detailed content of The difference between yii and laravel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is yii gii Next article:what is yii gii