Originally published at: http://www.sitepoint.com/getting-started-medoo-examples-use/
In this article I’m going to walk you through Medoo, a lightweight database abstraction library for PHP. Its main features include:
- Support for multiple databases – it supports MySQL, MariaDB, Sybase, MS SQL, PostgreSQL, and Oracle.
- Secure – prevents SQL injection, it uses PDO.
- Easy to use – its API is very intuitive.
While Medoo is nothing revolutionary, and the fact that it sports a very small filesize matters little to few, it’s still an interesting project that went from being outright dismissed to vaguely accepted, as evident in these threads. It’s on its way up, and that’s our reason for taking a look at it.
Even though the website recommends installing it by downloading a file and including it in your project, you should use Composer to do so.