9 Dec, 2017

A PHP PDO mysql helper class used in SlimPHP applications

This is a very simple example on how to use SlimPHP and PDO in a basic API that updates, lists and deletes entries from a table. If you are new to building APIs with SlimPHP, then this is a good starting point.

The class itself:

The database dependency:

Example usage: