wplibs/database
WordPress Database 
Installation
composer require wplibs/database:^1.0
Usage
Basic Example
<?php
use WPLibs\Database\Database;
$builder = Database::newQuery()->select( '*' )->from( 'posts' );
var_dump( $posts = $builder->get() );
var_dump( $builder->toSql() ); // select * from `{$wpdb->posts}`
The query above can be shorten by this:
$posts = Database::table( 'posts' )->get();
Documents
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.0 | >=5.6.0 | MIT |