哪个是 codeigniter 的最佳 PHP ORM?

Which is the best PHP ORM for codeigniter?(哪个是 codeigniter 的最佳 PHP ORM?)
本文介绍了哪个是 codeigniter 的最佳 PHP ORM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 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.

这篇关于哪个是 codeigniter 的最佳 PHP ORM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)