I understand someone may suggest it’s better to write your own pdo wrapper to suit your needs, but if something is already out there, why not just give it a try and alter it to work for your situation? If you want a simplify way to deal with common SQL statements like select, insert, delete and update methods, I personally think it’s a good practice to use a pdo wrapper class because it will not only reduce development time, but to help making future global change of codes a breeze.
Below is a list php pdo wrapper class I found on the net and hopefully we can somehow generate some discussion and perhaps come up with pros and cons on each of these.
- PHP PDO Wrapper Class <– this is what I am using.
- PDO MySQL SQLite Wrapper
- Simple PHP PDO Wrapper
- PHP5 PDO Singleton Class
If you know of a class not on this list, feel free to post it in the comment section and I will sure review and add to this list.