Download the PHP package mysaaspackage/query-builder without Composer
On this page you can find all versions of the php package mysaaspackage/query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mysaaspackage/query-builder
More information about mysaaspackage/query-builder
Files in mysaaspackage/query-builder
Download mysaaspackage/query-builder
More information about mysaaspackage/query-builder
Files in mysaaspackage/query-builder
Vendor mysaaspackage
Package query-builder
Short Description Provides a query builder for the database
License MIT
Package query-builder
Short Description Provides a query builder for the database
License MIT
Please rate this library. Is it a good library?
Informations about the package query-builder
QueryBuilder
A fluent SQL query builder for PHP that supports complex queries including CTEs, recursive CTEs, and various SQL operations.
Installation
Basic Usage
SELECT Queries
Common Table Expressions (CTEs)
INSERT, UPDATE, and DELETE Operations
Complex Queries with Subqueries
API Reference
Query Construction Methods
select(...$columns): self
- Set columns to selectfrom(string $table, ?string $alias = null): self
- Set the main tablewhere(string $condition, array $params = []): self
- Add a WHERE conditionandWhere(string $condition, array $params = []): self
- Add an AND WHERE conditionorWhere(string $condition, array $params = []): self
- Add an OR WHERE conditionjoin(string $table, string $alias, string $condition): self
- Add an INNER JOINleftJoin(string $table, string $alias, string $condition): self
- Add a LEFT JOINrightJoin(string $table, string $alias, string $condition): self
- Add a RIGHT JOINgroupBy(string ...$columns): self
- Add GROUP BY clauseshaving(string $condition, array $params = []): self
- Add a HAVING conditionorderBy(string $column, ?string $direction = null): self
- Add an ORDER BY clauselimit(int $limit): self
- Set the LIMIToffset(int $offset): self
- Set the OFFSET
CTE Methods
with(string $name, QueryBuilder $query, array $columns = [], bool $recursive = false): self
- Add a CTEwithRecursive(string $name, QueryBuilder $baseQuery, QueryBuilder $recursiveQuery, array $columns = []): self
- Add a recursive CTE
DML Operations
insert(string $table): self
- Start an INSERT queryvalues(array $values): self
- Set values for INSERTupdate(string $table): self
- Start an UPDATE queryset(array $values): self
- Set values for UPDATEdelete(string $table): self
- Start a DELETE query
Parameter Methods
setParameter(string|int $key, mixed $value): self
- Set a parameter valuegetParams(): array
- Get all parameters
Finalization Methods
toSQL(): string
- Get the final SQL query
All versions of query-builder with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package mysaaspackage/query-builder contains the following files
Loading the files please wait ....