This is classyPHP, a tiny web utility to create fully-fledged ready-to-use PHP classes from SQL CREATE TABLE statements. Just paste your SQL and click the "...THEN CLICK HERE..." button.
The generated PHP class can select, insert, update and delete rows in your database. It also features getters (selectors) and setters. Do give it a try: