Download the PHP package jardissupport/dbquery without Composer

On this page you can find all versions of the php package jardissupport/dbquery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dbquery

Jardis DbQuery

Build Status PHP Version Coverage

Part of Jardis — the Domain-Driven Design platform for PHP. You model your domain; Jardis generates the production-ready hexagonal code (DTOs, Command/Query handlers, repositories, persistence). This package is part of the open-source foundation that generated code runs on.

A fluent SQL query builder for PHP that generates dialect-aware SQL for MySQL, MariaDB, PostgreSQL, and SQLite. Full support for CTEs, window functions, subqueries, JSON columns, and prepared statements. SQL injection protection built in.


Features


Installation

Quick Start

Identifier Auto-Quoting

Simple identifiers are quoted automatically with the dialect's identifier quoting — MySQL/MariaDB/SQLite use backticks, PostgreSQL uses double quotes. This makes case-sensitive column names (e.g. createdAt from quoted DDL) work on PostgreSQL, which folds unquoted identifiers to lowercase (error 42703 before).

What is quoted — a string is a simple identifier iff it matches ^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)?$ (ident or alias.ident). Simple identifiers are quoted in these positions:

What stays raw (byte-identical) — everything that is not a simple identifier:

Boundary — quoting makes the written identifier case-significant on PostgreSQL. The name you pass must match the DDL exactly when the DDL was quoted, or be all-lowercase when the DDL was unquoted. Declare aliases with an explicit AS (COUNT(*) AS orderCount) so alias definition and alias references are quoted consistently; use Expression::raw() where the raw string is required.

Advanced Usage

Upsert in every dialect

onDuplicateKeyUpdate() renders the same upsert on every dialect:

Dialect Rendered
MySQL / MariaDB ON DUPLICATE KEY UPDATE col = ? (the database picks the conflicting unique key)
PostgreSQL / SQLite ON CONFLICT (target) DO UPDATE SET col = ?

PostgreSQL and SQLite need a conflict target: call onConflict('col', ...) first. Without it sql() throws an InvalidArgumentException instead of silently dropping the clause. MySQL/MariaDB ignore the target, so one call chain is valid on all four dialects. onConflict()->doUpdate([...]) stays available and feeds the same clause on PostgreSQL/SQLite (both entry points merge; onDuplicateKeyUpdate() wins per column).

Literal substring search (LIKE with ESCAPE)

like() / notLike() take a pattern as given: % and _ in a user's search term act as wildcards. For a search for a literal term pass a LikePattern:

%, _ and the escape character ! inside the term are escaped in one place (LikePattern); the clause ESCAPE '!' is identical on MySQL, MariaDB, PostgreSQL and SQLite. Works in where/and/or/having and for SELECT, UPDATE and DELETE.

LikePattern implements JardisSupport\Contract\DbQuery\LikePatternInterface from jardissupport/contracts: code typed against the contracts interfaces passes it to like() / notLike() without a static-analysis error.

Documentation

Full documentation, guides, and API reference:

docs.jardis.io/en/support/dbquery

License

This package is licensed under the MIT License.


Jardis · Documentation · Headgent

AI-Assisted Development

This package ships with a skill for Claude Code, Cursor, Continue, and Aider. Install it in your consuming project:

More details: https://docs.jardis.io/en/skills


All versions of dbquery with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
jardissupport/contracts Version ^2.14
jardissupport/dotenv Version ^1.0
ext-pdo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jardissupport/dbquery contains the following files

Loading the files please wait ...