PHP框架的一点点比较

本文对比了多种PHP框架,包括Zend Framework、Symfony、CakePHP等,从MVC支持、多数据库支持、ORM、模板引擎等方面进行了详细比较。最终选择了CodeIgniter作为推荐框架。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Framework Comparison Chart

FrameworkPHP4PHP5MVC1Multiple DB's2ORM3DB Objects4Templates5Caching6Validation7Ajax8Auth Module9Modules10
Zend Framework-YESYESYES-YES-YESYES--YES
CakePHPYESYESYESYESYESYES-YESYESYESYES-
Symfony Project-YESYESYESYESYES-YESYESYESYES-
Seagull FrameworkYESYESYESYESYESYESYESYESYES-YESYES
WACTYESYESYESYES-YESYES-YES---
Prado-YES-YES--YESYESYESYESYESYES
PHP on TRAX-YESYESYESYESYES--YESYES--
ZooP FrameworkYESYESYESYES-YESYESYESYESYESYESYES
eZ Components-YES-YES-YESYESYESYES--YES
CodeIgniterYESYESYESYES-YESYESYESYES--YES
#1: Indicates whether the framework comes with inbuilt support for a Model-View-Controller setup.
#2: Indicates whether the framework supports multiple databases without having to change anything.
#3: Indicates whether the framework supports an object-record mapper, usually an implementation of ActiveRecord.
#4: Indicates whether the framework includes other database objects, like a TableGateWay.
#5: Indicates whether the framework has an inbuilt template engine.
#6: Indicates whether the framework includes a caching object or some way other way of caching.
#7: Indicates whether the framework has an inbuilt validation or filtering component.
#8: Indicates whether the framework comes with inbuilt support for Ajax.
#9: Indicates whether the framework has an inbuilt module for handling user authentication.
#10: Indicates whether the framework has other modules, like an RSS feed parser, PDF module or anything else (useful).

Copyright © 2006 Dennis Pallett, PHPit - Totally PHP.

Return to the article


PHP5的就选zend framework. symfony似乎更强大一些.不过谁知道zf会不会赶上来呢.
PHP4的有CakePHP,Seagull,WACT,ZooP,CodeIgniter

CodeIgniter已经见识过它的强大了,之前写的东西在思路上跟它有些像,封装所有操作,只不过没有实现MVC,仅仅是按着面向对象编程而已,如果早些了解框架这东西就不用推倒重来了.
综合上面那张图,不知道是哪一年的了.可以看到ZooP和Seagull支持的功能最多.CakePHP次之.最差的就是WACT了.
首先知道的框架是ZF,可惜只支持PHP5,没办法,放弃了.
而后看到了CI,试验了一番,觉得很强大.我的类里面的功能全实现了,而且比我的强大,如果给我的时间再多点,说不定我也能搞个框架出来.呵呵.
用 Seagull写出来的代码,不是我想要的,太复杂了.
CakePHP的配置看的头晕.可能了解的不多吧.
似乎CI更适合我这个懒人.

先这样吧.写看看看.毕竟我这也只是个小项目,而且目标并不清楚.

呵呵.能看到吗?能看到就为我加油吧.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HOOLOO

技术分享,回馈社会,建设祖国。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值