I was very much interested in the database class of CodeIgniter, especially the Active Records.
I was quite satisfied with an old mysql wrapper that I have been using for long time. But I’ve decided to start using MySQLi for all my future projects so started to write my own database wrapper for php.
php.net official recommend the usage of mysqli over mysql if we are using MySQL database version 4.1.3 or more.
The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed to take advantage of new features found in MySQL systems versions 4.1.3 and newer. The mysqli extension is included with PHP versions 5 and later.
The class has been made available online for free and is available at https://bitbucket.org/getvivekv/php-mysqli-class
For a complete documentation, refer https://bitbucket.org/getvivekv/php-mysqli-class/wiki/Home
The code was heavily inspired from CodeIgniter free library. The code is freely available for anyone to download. If you find any error or have any feature to add, please report me. You can also post new issue if you find any bug.