Home  >  Article  >  Backend Development  >  What does PHP open source framework mean?

What does PHP open source framework mean?

Guanhui
GuanhuiOriginal
2020-05-12 18:07:514097browse

What does PHP open source framework mean?

What does PHP open source framework mean?

The basic functions and common codes developed by PHP follow the open source agreement In this case, users are allowed to use the source code to modify and learn based on it, or conduct project development, but the code is also copyrighted and protected by law.

PHP framework recommendation

1. ThinkPHP framework

Advantages : Simple and easy to use (Model, Controller, and View are responsible for their own work). It has a compiled template engine that supports XML tag library technology, supports two kinds of template tags, dynamic compilation, and caching technology. It also supports custom tag libraries, with unique data validation and auto-fill, MD5 data encryption and other functions. Simple deployment requires only one entry file, quick to get started, rich Chinese documentation; low learning cost, high community activity, widely used in domestic enterprises

Disadvantages: The template is relatively fixed, which leads to easy solidification of ideas.

2. CI Framework

Advantages: The framework is relatively simple, suitable for entry-level development, easy to learn, quick to get started, easy to staticize, and the documentation is relatively detailed.

Disadvantages: Because the framework is small, the functions are not complete. For example, when using mongoDB, you need to implement the interface yourself, and the operation of the database is not safe enough (write operations). The support for large projects is not good.

3. Laravel framework

Advantages:

1. Support Composer

2. The framework structure is relatively clear and focuses on code Modularity (abstracting middleware, tasks, services, etc.) and scalability, the routing system is fast and efficient

3. Supports processing of cross-site request forgery. When submitting a form post, {{ must be passed in csrf_field() }}

 4. Laravel’s community is very strong, with rich extension packages and tools

 5. It has functions such as caching, authentication, task automation, hash encryption, and transactions

 6. The unique .env environment file facilitates system configuration and development of different platforms

Disadvantages: Based on a component-based framework, it is relatively bloated

4. Yii framework

Advantages:

1. Pure OOP development, easy to use model

2. Supports command line tool development, you can quickly create a web Application code

 3. Highly reusable and scalable

 4. Fast development speed, excellent performance and rich functions

 5. Support composer package Management tool

Disadvantages: Less consideration is given to the model layer, and there are fewer Chinese documents in the documents. It requires proficiency in PHP technology and proficiency in OOP programming


Recommended tutorial: "PHP Tutorial"

The above is the detailed content of What does PHP open source framework mean?. 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