Download the PHP package scrnr/query-builder without Composer

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

QueryBuilder for MySQL driver in PHP

Packagist PHP Version Packagist Version Packagist License

For full documentation click here

Table of contents

Description :top:

The PHP Database Query Library is a powerful and easy-to-use PHP library that allows you to easily write queries to database and receive a string with the builded query. It provides a simple and intuitive interface for building complex SQL statements in your PHP code.

Features :top:

Installation :top:

You can install this library using Composer. Just add the following line to your composer.json file:

Or you can use this command:

How to use :top:

To use the library, first, you need to create a new instance of the QueryBuilder class:

Then, you can use the various methods provided by the class to build your query. The QueryBuilder class has four public methods:

Example :top:

The following example demonstrates how to use the QueryBuilder class to build SQL statements.

First example :top:

Output

In this example, we call the select() method with the table name and the all() method to select all columns. Then, we call the getQuery() method to get the SQL query.

Second example :top:

Output

In this example, we call the select() method with the table name, the columns() method to select specific columns, the from() method with the second table name, and the alias() method to specify the column and its alias, and the innerJoin() method to join the categories table. Finally, we call the getQuery() method to get the SQL query

Third example :top:

Output

In this example, we call the select() method with the table name and the all() method to select all columns. Then, we call the where() method to start building the WHERE clause, the equal() method to specify the condition, and the end() method to end the WHERE clause. Next, we call the order() method to order the results and the limit() method to limit the number of results returned. Finally, we call the getAll() method to get the SQL query and its prepared parameters as an array.

For more information about the getAll() method click here.

Contribution :top:

Contributions to this library are welcome. You can report issues, suggest new features or submit pull requests on the GitHub repository.

Author :top:

:bust_in_silhouette: GitHub: scrnr

License :top:

This library is released under the MIT License. Please review the LICENSE file for more information


All versions of query-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-pcre 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 scrnr/query-builder contains the following files

Loading the files please wait ....