indgy / phluent
A dependency free lightweight fluent SQL query builder using PDO
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/indgy/phluent
Requires
- php: ^7.3||^8.0
README
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');
Install
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");
Usage
See the documentation for details.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ make test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email me@indgy.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.