适用于PHP的简单ORM [英] Simple(r) ORM for PHP

查看:74
本文介绍了适用于PHP的简单ORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP的最简单 ORM实施是什么?我正在寻找真正简单轻巧的东西(就LOC而言,因为速度并不紧要,所以我不需要缓存等等),最好是单个文件或类包,它不依赖于XML或其他配置文件,并且易于部署.

What is the simplest ORM implementation around for PHP? I'm looking for something really simple and light (in terms of LOC, since speed it's not crucial I don't need caches and what not), preferably a single file or class package that doesn't depends on XML or other configuration files and it's easy to deploy.

阅读其他类似的问题 Pork.dbObject (顺便说一下,它是由一个人开发的的SO用户)是到目前为止我所能找到的最接近的对象,并且我想知道是否还有其他的ORM实现可能比该实现更轻.

Reading other similar questions Pork.dbObject (which by the way is developed by one of SO users) was the closest I could find so far, and I'm interested in knowing if there are any other ORM implementations that might be lighter than this one.

推荐答案

Docrine和Propel很好,但是不能说它们是最简单的". 这里有两种选择- PHP Active Record

Doctrine and Propel are good, but can't say they are "simplest". Here two alternatives - PHP Active Record , Outlet PHP ORM

希望其中之一会有所帮助

Hope one of them helps

这篇关于适用于PHP的简单ORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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