Download the PHP package hemiframe/php-query-builder without Composer
On this page you can find all versions of the php package hemiframe/php-query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-query-builder
php-query-builder
Powerful and lightweight PHP SQL Query Builder with fluid interface SQL syntax using bindings and complicated query generation
Features
- multiple databases (multiple PDO instances)
- INSERT, INSERT IGNORE, INSERT DELAYED, UPDATE, SELECT, DELETE queries
- support LEFT JOIN, INNER JOIN, RIGHT JOIN, GROUP BY, LIMIT, HAVING and etc.
- =, !=, >, <, >=, <=, IN, NOT IN, IS NULL, NOT NULL operators
- support transactions and sub-queries
- support result caching (
\Psr\SimpleCache\CacheInterface
) - multiple fetching data modes (fetch arrays, fetch objects, etc.)
- auto escape column names
- auto format queries
- auto bind variables
- hydration to objects (auto cast types from annotations and property types). See
demo/hydration.php
Quick install
The recommended way to install the Query Builder is through Composer. Run the following command to install it:
Set default PDO instance:
Documentation
Select query
Output:
Select query from sub query
Output:
Insert query
Output:
Insert query with VALUES
Output:
Update query
Output:
Delete query
Output:
Delete query with joins
Output:
Fetching data
Fetch data as array of arrays
Fetch data as array of objects
Fetch first result as array
Fetch first result as object
Using multiple databases
All versions of php-query-builder with dependencies
PHP Build Version
Package Version
The package hemiframe/php-query-builder contains the following files
Loading the files please wait ....