How to make PDO easier

While I converted myself (finally!) From mysql_connect () to PDO :: etc. and all other mysql functions, in order to apply the best coding style of DB abstraction to my sites, I could not help but notice how object-oriented, error exception handling and prepared statements based on this material. I am fine with all this, but I am sure that the newcomer next to me only comes to the ease of copying and pasting.

Are there any libraries / scripts / user contributors to simplify DBO calls, like removing exception handling and object orientation, or at least n00b?

I created my own library with PDO, but I'm not sure what is already there?

+5
source share
1 answer

You can use a framework that uses ORM like Laravel: http://laravel.com/docs/database/eloquent

But then you do not write your own SQL queries (or not recommended), otherwise you can just use MySQLi: http://se2.php.net/mysqli_query but none of them removes the objective view, I think. But both can be understood by a new programmer.

I recommend that you go beyond, at least, your future projects.

Here are some examples of them:

+4

All Articles