Query Builder Database Wrapper for WordPress
As of April 2026, NinjaDB is a WordPress WordPress plugin with 0 active installations and a 0/5 rating0. It has been downloaded 1.3K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2017. Last updated 8 years ago — may have compatibility concerns.
A lightweight, expressive query builder for WordPress. NInjaDB use the same $wbdp instance and methods, It will help you to write $wpdb queries easily and expressively. At least PHP 5.3 is required.
It has some advanced features like:
– Query Like Laravel Basic Queries
– Where, orWhere methods
– Search data in all the columns or specific columns
– Easily Implement Pagination
– use insert, update or delete methods expressively.
The syntax is quite similar to Laravel’s query builder.
Simple Query:
The query below returns the row where id = 3, null if no rows.
$row = ninjaDB('my_table')->find(3);
Full Queries:
$query = ninjaDB('my_table')->where('post_author', '=', 1); // for equal you can just use where('post_author, 1);
// Get result as arra…| WordPress | 4.0+ requiredTested up to 4.8.28 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.