2

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
  • If ezSQL is awesome, why are you looking for a new wrapper? What additional features do you want? Commented May 5, 2009 at 17:54
  • I don't know that I want any additional features. I'm just testing the water for something different/better. Commented May 5, 2009 at 18:31

4 Answers 4

4

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

Sign up to request clarification or add additional context in comments.

1 Comment

As long as your building with APC support and perhaps have memcache, the extensive feature list of Doctrine easily balances out its footprint.
3

PDO

2 Comments

That's not really a wrapper for SQL. Just handles database communication, you'll still have to write the SQL queries.
With ezSql you also have to write the SQL yourself. Wrapper might be a good name?
2

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.

Comments

1

You could always look into an ORM solution like Propel.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.