PHP ORM Solution for SqlServer
I am searching for DAL or ORM (Only ORM no MVC) Solution in PHP5 that can efficiently access SqlServer. I am new to SqlServer. and I need to code a part of ASP.net website in PHP5. I am currently Using QCodo However its codegenerator is making some problem with ASP's own tables (?? the ASP Guys told me that its for ASP's Membership Management. and these tables are handled internally).So I need some alternative solution that开发者_C百科 can work in this situation too !!
I've wrestled with this for quite a while and there are a few key points that you need to be aware of when it comes to SQL Server and PHP.
The driver of choice is currently the 2.0 release of the Microsoft Drivers for PHP for SQL Server. You can find more information about that driver here. I installed it using the Microsoft Web PI application.
As of this post, I know of only 1 ORM that supports this driver and that is Propel. That being said, Propel's generator has a dependancy upon Phing, which is best installed via PEAR. After wrestling with trying to get all of this working in Windows Server 2k8, I gave up and I'll just be writing my own wrapper or using the native PDO functions.
Several options, from more to less complex:
- Doctrine
- Propel
- Zend_Db
The three of them support MSSQL through PDO's MSSQL Server extension.
精彩评论