什么是好的PHP活动记录库? [英] What's a good PHP Active Record library?

查看:160
本文介绍了什么是好的PHP活动记录库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用CodeIgniter一段时间,我一直非常高兴与其活动记录的东西。非常好用它查询数据库。

I've been using CodeIgniter for some quite time, and I've been extremely happy with its Active Record stuff. It's great to query the database with it.

最近我开始一个新的项目,我不能再使用这样的框架了。

Recently I've started a new project and I can't use such a framework anymore.

是否有一个简单的PHP活动记录库,它的工作和取消的方式(类似于CodeIgniter的版本)?

Is there a simple PHP Active Record library that does its job and gets out of the way (similar to CodeIgniter's version)?

推荐答案

您是否明确寻找 Active Record模式的实施方案?

Are you explicitly looking for an implementation of the Active Record pattern?

如果不是,您可能想查看对象关系映射器(ORM),例如 Doctrine Propel 。另请参见 SO上的此问题

If not you might want to look into an object-relational mapper (ORM), such as Doctrine or Propel. See also this question on SO.

这篇关于什么是好的PHP活动记录库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆