I\'m building a webapp for a department on a large college campus that will eventually be run on the enterprise servers ( I use the term \'enterprise\' loosely ).
I suppose that every modern ORM relies on PDO as it's a standard database driver.
If you have MySQLi extension enabled then you should be able to write your own PDO (IIRC MySQLi supports everything that PDO does).
if (extension_loaded('pdo_mysql') == false) {
class PDO {
protected $connection;
public function __construct($dsn, $username = null, $password = null, array $driver_options = array()) {
$this->connection = new MySQLi(...);
}
}
class PDOStatement { ... }
class PDOException extends RuntimeException { ... }
}
You'll have to implement whole PDO API but at least it will works.