Download the PHP package olajoscs/querybuilder without Composer

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

Build Status Latest Stable Version

QueryBuilder

A simple query builder for relational databases, currently working with:

100% of the code is unit tested.

Contains the 4 basic (CRUD) operations with transaction handling.

Minimum requirements: PHP 5.5+ with any of the databases above.

Creating the connection

The Connection class extends the built-in PDO class. It is the starting point of creating statements. Create a new instance based on the database type you are using, and give it to your DI container trait it as a singleton. The constructor is the same as the one in the PDO class.

Starting from Connection

There are 4 statements (Select, Update, Insert, Delete), which have own methods to create. All the statements has an execute method, which executes the built query, then returns the PDOStatement object.

Transaction

Transaction can be used with a callback function. In case of any exception all changes are rollbacked.

Basic select syntax

The syntax of building a select statmenet is similar to do it in SQL.

List of get.... methods

Basic update syntax

Update syntax is similar as seen in SQL.

The query is executed only when the execute() method is called.

Basic insert syntax

Insert syntax is similar as seen in SQL.

The query is executed only when the execute() method is called.

Multiple rows for insert statement is also supported, these can be added in a 2 dimensional array.

Basic delete syntax

Delete syntax is similar as seen in SQL.

The query is executed only when the execute() method is called.

Raw expressions

RawExpression object can be used when any expression is needed, but the querybuilder is not able to handle it. This can be used in select and where methods.

Where clauses

In Select, Update and Delete statements where clauses can be used. All these statements have the following methods regarding where either with "and" connector (normal methods) or "or" connector, with a where...Or method.

Where... methods


All versions of querybuilder with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.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 olajoscs/querybuilder contains the following files

Loading the files please wait ....