A dependency free lightweight fluent SQL query builder using PDO similar to Eloquent, allows you to query your database fluently:
$query->select('title, year')
->from('movies')
->where(function($query) {
$query->where('title', 'like' ,'A %');
$query->orWhere('title', 'like' ,'The %');
})
->orderBy('year');
Phluent can be used as a composer package or a single file download and included() into your project.
Via Composer
$ composer require indgy/phluent
As a standalone file
cp dist/Phluent.php /path/to/your/project
Then require it where needed in your project
require("/path/to/your/project/Phluent.php");
See the documentation for details.
Please see CHANGELOG for more information on what has changed recently.
$ make test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email me@indgy.uk instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.