Last active
August 29, 2015 14:14
-
-
Save fwolf/58e7279d85d5e62efe3a to your computer and use it in GitHub Desktop.
Choose betwen PHP ORM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Propel | |
http://propelorm.org/ | |
第一印象感觉不错 | |
Propel2 需要 PHP 5.4 | |
CRUD 正合我意 | |
Relationships 也不错,就是 useXxx() 和 endUse() 缩进有点奇怪,IDE 那儿也许会有点小问题 | |
缺点:初始化比较复杂 | |
Doctrine | |
主要是觉得笨重,另外不喜欢它的特殊注释 | |
Spot2 | |
DataMapper 模式,不错 | |
但比较简单,比如 save 不会同时 save 关联 entity。 | |
mapper 类同时也是等同于 Eloquent QueryBuilder 的角色。 | |
不支持 Join,天哪。 | |
总体来说,还是功能受限。 | |
Idiorm | |
https://github.com/j4mie/idiorm/ | |
足够简单,无需配置 | |
方法命名方式是 snake_case,用 __call() 转换为 camelCase,代码提示时会有小问题(not IDE friendly) | |
单文件,无 namespace | |
Kohana ORM | |
感觉过于简单 | |
RedBean | |
居然让用原生 SELECT SQL | |
关系处理部分怪怪的 | |
QCubed | |
没看懂 | |
CoughPHP | |
似乎不再维护了 | |
http://www.gajotres.net/best-available-php-orm-libraries-part-1/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment