主流 PHP 框架特点

2020-01-30T17:31:56

Laravel

易于访问,功能强大,并提供大型,强大的应用程序所需的工具
简单快速的路由引擎
强大的依赖注入容器
富有表现力,直观的数据库 ORM
提供数据库迁移功能
灵活的任务调度器
实时事件广播

Symfony

Database engine-independent
Simple to use, in most cases, but still flexible enough to adapt to complex cases
Based on the premise of convention over configuration--the developer needs to configure only the unconventional
Compliant with most web best practices and design patterns
Enterprise-ready--adaptable to existing information technology (IT) policies and architectures, and stable enough for long-term projects
Very readable code, with phpDocumentor comments, for easy maintenance
Easy to extend, allowing for integration with other vendor libraries

CodeIgniter

基于模型-视图-控制器的系统
框架比较轻量
全功能数据库类,支持多个平台
Query Builder 数据库支持
表单和数据验证
安全性和 XSS 过滤
全页面缓存

ThinkPHP

采用容器统一管理对象
支持 Facade
更易用的路由
注解路由支持
路由跨域请求支持
验证类增强
配置和路由目录独立
取消系统常量
类库别名机制
模型和数据库增强
依赖注入完善
支持 PSR-3 日志规范
中间件支持
支持 Swoole/Workerman 运行

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »