支持 SQL Server 2005 的 PHP ORM
我一直在研究有关 PHP ORM 解决方案的当前选项(以及相关的 SO 问题),但是我有几个独特的要求:
- 我在 Windows Server 2003 上运行 PHP
- 我需要与 SQL Server 2005 交互
我似乎无法从 PHP ORM 解决方案中找到一个简单的答案,了解哪些(如果有)支持 MSSQL 作为适配器选项。例如,Outlet 似乎支持这一点,但仅在传递文档页面时提到,而其他参考文献则表示当前版本(1.0)仅使用 MySQL 进行了测试。
目前,我正在使用 Microsoft PHP SQL Server 驱动程序,据我了解,该驱动程序无法与当前的 ORM 解决方案一起使用,直到驱动程序本身支持 PDO(团队正在研究,但没有时间表)。
那么,今天我可以使用什么作为 PHP for Windows 上与 SQL Server 交互的 ORM 解决方案呢?那里有什么吗?
I have been looking around the current options (and related SO questions) regarding PHP ORM solutions, however I have a couple of unique requirements:
- I am running PHP on Windows Server 2003
- I need to interface with SQL Server 2005
I can't seem to find a simple answer from the PHP ORM solutions out there as to which (if any) support MSSQL as an adaptor option. Outlet seems to support this, for instance, but is only mentioned in passing on the documentation page, while other references say that the current version (1.0) has only been tested with MySQL.
At the moment, I am using the Microsoft PHP SQL Server driver, which as I understand it, can't be used with current ORM solutions until the driver itself supports PDO (which the team are looking into, but with no timeframe).
So what can I use today as an ORM solution on PHP for Windows that interfaces with SQL Server. Anything out there at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自学说手册:
Windows 上的 PHP 应该附带 适当的扩展for MSSQL for PDO. 只需启用
Propel 也应该支持 MSSQL,因为它是这样写的在 PDO 之上。虽然不是一个成熟的 ORM,但 Zend_Db 有一个用于 MSSQL 的适配器 也是如此。后者使用 pdo-dblib 。
From Doctrine manual:
And PHP on Windows should ship with an appropriate extension for MSSQL for PDO. Just enable
Propel should also support MSSQL, as it is written on top of PDO. And while not a full fledged ORM as such, Zend_Db has an adapter for MSSQL as well. The latter uses pdo-dblib though.