哪个是 codeigniter 的最佳 PHP ORM?

2022-01-16 00:00:00 orm frameworks php codeigniter

对于 codeigniter 框架来说,这将是最好的 ORM.我看到了一些类似的问题,但它太旧了,链接不起作用.谁能帮我解决这个问题?

解决方案

DataMapper

<块引用>

用 PHP 为 CodeIgniter 编写的对象关系映射器.它旨在将您的数据库表映射为易于使用的对象,充分了解彼此之间的关系.

网站:http://datamapper.wanwizard.eu/

气体 ORM

<块引用>

用于 CodeIgniter 的轻量级且易于使用的 ORM.Gas 是专门为 CodeIgniter 应用程序构建的.它使用 CodeIgniter 数据库包,这是一个强大的 DBAL,它支持许多 DB 驱动程序.Gas ORM 提供了一组方法,可以将您的数据库表及其关系映射到可访问的对象中.

网站:http://gasorm-doc.taufanaditya.com/

教义

网站:http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/

注意:您必须采取一些变通方法才能将其与 CI 集成,请尝试 这里.

编辑:学说,与 CodeIgniter 集成(工作 URL).这可能不适用于所有 CodeIgniter 版本,可能需要稍作调整.

Which would be the best ORM for the codeigniter framework. I saw some similar questions but it was too old and the link didn't work. Can anyone help me out with this?

解决方案

DataMapper

An Object Relational Mapper written in PHP for CodeIgniter. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other.

Website: http://datamapper.wanwizard.eu/

Gas ORM

A lightweight and easy-to-use ORM for CodeIgniter. Gas was built specifically for CodeIgniter app. It uses CodeIgniter Database packages, a powerful DBAL which support numerous DB drivers. Gas ORM provide a set of methods that will map your database tables and its relationship, into accessible object.

Website: http://gasorm-doc.taufanaditya.com/

Doctrine

Website: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/

NOTE: You must do some workaround to integrate this with CI, try here.

EDIT: Doctrine, integrating with CodeIgniter (working URL). This might not work for all CodeIgniter versions and may require slight adjustments.

相关文章