Download the PHP package hasan-22/query-builder without Composer

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

PDO QUERY BUILDER


PHP SQL query builder using PDO. It's a quick and light library featuring a smart join builder, which automatically creates table joins for you.


Features

Driver:

First make the config file exactly like this Config file is not necessary config.php

Then create a custom driver class for the connection like this

Mysql.php

Then create new instance of DB

Set table and fetch all records

In the get() function, you can specify which columns to get

Or you can use all() function to get all records

Execute queries for a single or many record by ID


If you want add condition follow my lead

Some Where functions


Some Having functions


Join functions

You can use where or having condition with join functions


CRUD functions

For insert data use create function

Insert single data

Insert multiple data

Update record

Delete record


Transaction


Debug

Only works on functions whose return value is Object of class DB.


Functions

Functions return
table Object of class DB
get Array
all Array
find object \ array
newQQuery Array
count object
latest Object of class DB
orderBy Object of class DB
rand Object of class DB
groupBy Object of class DB
limit Object of class DB
take Object of class DB
first object
last object
max object
min object
sum object
avg object
where Object of class DB
orWhere Object of class DB
whereNull Object of class DB
orWhereNull Object of class DB
whereNotNull Object of class DB
orWhereNotNull Object of class DB
whereIn Object of class DB
orWhereIn Object of class DB
whereNotIn Object of class DB
orWhereNotIn Object of class DB
whereBetween Object of class DB
orWhereBetween Object of class DB
whereNotBetween Object of class DB
orWhereNotBetween Object of class DB
exists Object of class DB
orExists Object of class DB
notExists Object of class DB
orNotExists Object of class DB
having Object of class DB
orHaving Object of class DB
havingNull Object of class DB
orHavingNull Object of class DB
havingNotNull Object of class DB
orHavingNotNull Object of class DB
havingIn Object of class DB
orHavingIn Object of class DB
havingNotIn Object of class DB
orHavingNotIn Object of class DB
havingBetween Object of class DB
orHavingBetween Object of class DB
havingNotBetween Object of class DB
orHavingNotBetween Object of class DB
innerJoin Object of class DB
leftJoin Object of class DB
rightJoin Object of class DB
crossJoin Object of class DB
create boolean
update boolean
delete boolean
beginTransaction void
rollback void
commit void
getDbName string
currentId object
lastInsertId object
emptyQuery void
debug string

All versions of query-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 hasan-22/query-builder contains the following files

Loading the files please wait ....