Download the PHP package makinacorpus/query-builder without Composer

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

Query Builder

Coding standards Static Analysis Documentation Status

This is a driver-agnostic SQL query builder with advanced SQL language features.

Per default, it generates (almost) SQL standard compliant queries, almost because some SQL features are simply not implemented by any dialect we support case in which we implement a custom variant.

It is based upon a fluent API, which makes basic SELECT, DELETE, INSERT, UPDATE and MERGE queries easy to write, even if you don't really now SQL.

At any place the user can inject raw SQL in order to escape the query builder own limitations.

This API by itself is only a SQL string generator, in order to use it transparently, a few bridges are provided:

Getting started

Read the documentation on read the docs.

Overview list of SQL supported features.

See the officially supported vendor dialects.

Non-exhaustive feature list

Building documentation

Documentation is written using VitePress.

For readers:

For developers:

Run tests

Most unit tests will work gracefuly by running directly PHPUnit:

For running bridges integration tests, it needs a complete environment with some databases up and running, for this purpose a script that uses docker compose is provided, yet it might not work gracefuly in all environments:

Please understand that the testing environment is currently at the prototype stage, and will remain as-is until github actions CI is configured.

History

This API is an almost complete rewrite, keeping the base design, using modern PHP >= 8.2 features and much more unit tested of the query builder from the makinacorpus/goat-query package.

Rationale is that we deeply used makinacorpus/goat-query as our primary database access layer for some years, but we are shifting toward using more commonly used tooling for future projects.

Doctrine DBAL query builder can do everything you would want to do, but its API is unintuitive and written code using is hard to read. Moreover, it doesn't implement modern SQL language features since its goal is mostly to provide lowest common denominator for a huge number of RDBMS.


All versions of query-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/polyfill-php83 Version ^1.29
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 makinacorpus/query-builder contains the following files

Loading the files please wait ....