Download the PHP package hiblaphp/query-builder without Composer

On this page you can find all versions of the php package hiblaphp/query-builder. 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 query-builder

Hibla Query Builder

A framework-agnostic, async-first query builder and connection pool manager for PHP 8.4+.

Note: This repository is the core query engine of the Hibla Database Ecosystem. For complete, comprehensive documentation covering Migrations, Seeders, and advanced Query Builder features, please visit the main hiblaphp/database meta-package.

Overview

hiblaphp/query-builder provides high-performance, non-blocking database access for modern async PHP applications. It brings the familiar, highly-expressive fluent syntax of Laravel's query builder to asynchronous runtimes.

Supported Drivers & Async Strategy

Rather than relying on blocking PDO drivers, Hibla utilizes tailored non-blocking drivers optimized for each database engine:

Features

Installation

This package is currently in beta. Before installing, ensure your composer.json allows beta releases:

Install the package via Composer:

Initialize your database configuration file:

(Edit hibla-database.php or your .env file to select your default connection).

Quick Start (Zero-Config SQLite)

Because the library defaults to an in-memory SQLite database, you can run queries immediately without configuring any external database servers:

Note: You do not need to call DB::close() manually. the Query Builder will handle it for you after the query builder instance is destroyed or garbage collected. But you can still call it if you want to close the connection pool earlier or you want to be more explicit on resource management.

Dependency Injection (Testable Architecture)

For enterprise applications and dependency injection purists, Hibla exposes clean interfaces. You do not have to rely on the static facade. You can bind DatabaseConnectionInterface in your DI container and inject it directly into your repositories:

Because your service depends on an interface rather than a static class, you can easily swap the real connection with an in-memory SQLite client during unit testing!

Immutable Architecture

A major feature of Hibla's Query Builder is that every builder instance is strictly immutable.

Calling a method (like where(), limit(), or select()) never modifies the original object. Instead, it clones the AST (Abstract Syntax Tree) and returns a completely new instance. This allows you to safely build base queries and reuse them infinitely without state leaking across your application:

Testing & Development

Because Hibla tests live driver compilation and async socket execution, running the full test suite requires real databases to run against. A docker-compose.yml file is provided to spin up the necessary environments.

1. SQLite Testing (Zero Setup)

To run the SQLite test suite, no external database engines or Docker setups are required. Simply execute:

2. MySQL & PostgreSQL Testing

Start the MySQL 8 and PostgreSQL 15 containers:

Run the tests against MySQL:

Run the tests against PostgreSQL:

To run the entire suite across all three databases sequentially:

Documentation

For full documentation on available query methods (Joins, Aggregates, JSON columns, CTEs, Cursor Pagination, and Pessimistic Locking), please read the Comprehensive Hibla Documentation.

License

This package is open-sourced software licensed under the MIT license.


All versions of query-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
hiblaphp/event-loop Version ^1.0
hiblaphp/promise Version ^1.0
hiblaphp/cancellation Version ^1.0
hiblaphp/async Version ^1.0
hiblaphp/mysql Version ^1.0
hiblaphp/sqlite Version ^1.0
hiblaphp/postgres Version ^1.0
rcalicdan/query-builder-primitives Version ^1.0
rcalicdan/config-loader Version ^1.0
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 hiblaphp/query-builder contains the following files

Loading the files please wait ...