什么是一个很好的PHP的Active Record库?是一个、很好、PHP、Active

2023-09-08 18:43:51 作者:青灯古佛度流年

我一直在使用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.

有没有办法,它的工作,并得到了的方式(C $ cIgniter的版本类似$)?一个简单的PHP的Active Record库

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

推荐答案

您明确寻找的活动记录模式?

如果不是你可能要考虑的对象 - 关系映射(ORM),如主义或行走。另请参见这个问题上的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.