.Net Entity Framework 的 PHP 等价物

标签 php entity-framework

<分区>

我喜欢并且对 .Net 提供的 EF 感到非常满意,其中我可以先编码,数据库表由框架本身生成等。我现在正在使用 PHP 编写个人网站。 PHP 中是否有任何等效的东西可以让我的生活更轻松。我不能为个人网站选择 .Net。那个答案已经出来了:(。

最佳答案

通过“代码优先”方法,Doctrine:

文章:Code First Approaching PHP with Doctrine 2.2.1 and Composer .

官网:http://www.doctrine-project.org/projects/orm.html

您还可以检查其他流行的 PHP ORM,但我不确定您是否可以像 Doctrine 一样执行“代码优先方法”:

http://propelorm.org/

http://redbeanphp.com/

关于.Net Entity Framework 的 PHP 等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19643638/

相关文章:

php - 如何在有限的时间内验证/授权匿名用户?

php - Bootstrap : Dropdown as wide as the image

c# - 将具有不同关系值的表转换为 Excel 列

c# - 如何在 Repository 中注入(inject) EntityFramework Core DbContext

forms - symfony2 表单中找不到实体错误

当第一个字符为 0 时,PHP 过滤器验证 int 问题

php - MySql:查找 table2.name WHERE table1.lat = table2.lat AND table1.lng = table2.lng;

c# - 通过连接表在 Entity Framework 中表达一对多关系

c# - 当数据库中有数据时查询不返回任何内容

php - 无法使用动态创建位置的 file_get_contents