-1

I have a simple application that is set up to use Docrine2 DBAL, the problem is it needs to run on a host that only supports php 5.2.6. Doctrine requires PHP 5.3...

What is a good alternative Database Abstraction Layer for PHP? Should I simply convert everything to PDO? Or are there other good options?

Thanks.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Mike
  • 12,359
  • 17
  • 65
  • 86
  • 4
    I ended up going with PDO, it appears to be the best doctrine alternative. After all, doctrine is built around PDO... – Mike Feb 02 '11 at 15:43

4 Answers4

2

Maybe Zend_Db database abstraction layer?

BlueMark
  • 962
  • 4
  • 23
  • 41
Cobby
  • 5,273
  • 4
  • 28
  • 41
  • I think this might be the second best option besides PDO because of its active development and the ease in which you can drop it into a project. – Mike Feb 03 '11 at 15:54
1

Pear's MDB2 was the standard for database abstraction before Doctrine came around. It's still a solid DBAL layer with pluggable adapters for which ever database you with to support.

xzyfer
  • 13,937
  • 5
  • 35
  • 46
0

But Pear MDB2 won't run on PHP5.3 if you need it. (As of 5/18/2011)

Mallow
  • 844
  • 1
  • 13
  • 37
0

You could have still used Doctrine 1.2 which is actually compatible with version < 5.3

pfeigl
  • 457
  • 5
  • 12