Posted on Leave a comment

Lean and Mean PHP Email Class

Sending beautiful emails and attaching files with PHP can be a real hassle. I wrote this class as part of one of my side projects but I have recently used it as a teaching tool.


Posted on Leave a comment

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.