tags:

views:

317

answers:

4
+1  Q: 

PHP SQL Wrapper

Anyone have suggestions on wrappers for SQL within PHP? I've been using ezSQL, which is awesome, but wanted to see if anyone had any other suggestions.

+2  A: 

PDO

Luc M
That's not really a wrapper for SQL. Just handles database communication, you'll still have to write the SQL queries.
seanmonstar
With ezSql you also have to write the SQL yourself. Wrapper might be a good name?
Andomar
+1  A: 

You could always look into an ORM solution like Propel.

Jordan S. Jones
+1  A: 

I suggest Zend Framework DB backage, it has adapters for most database connectivity (PDO, MySQL, SQL Server, Oracle, Sqlite), is object oriented and uses row gateway and table gateway patterns, prevents SQL injections, works with stored procedures, has a builtin profiler etc. but If you want some ORM solution, I suggest Propel, or Doctorine.

farzad
+2  A: 

Doctrine, if you want full blown ORM. Zend_DB_Table is fine if all you need is a query builder.

Imran