Simple & Light PHP MySql Db Class

In my world, a PHP db class in essence should be a black box that handles the concerns of direct interaction with the MySql database and provides an abstract but functional alone basis for my model classes. The Db class must handle connecting to the database, and have inheritable static methods for executing both statements and queries. Also it must be tested before it is put into production. This code is tested and ready for production.

I originally wrote this class in a side-project of mine, and I’ve been using it recently as a teaching tool.



Published:February 10, 2016


Bookmark the permalink

Post a comment or leave a trackback: Trackback URL

Leave a Reply

Please wait...


Want to be notified when a new article is published? Enter your email address and name below to be the first to know.