Download the PHP package v-dem/queasy-db without Composer

On this page you can find all versions of the php package v-dem/queasy-db. 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 queasy-db

Codacy Badge Codacy Badge Total Downloads Latest Stable Version License

QuEasy PHP Framework - Database

Package v-dem/queasy-db

QuEasy DB is a set of database access classes for CRUD operations. Some of the most usual queries can be built automatically (like SELECT by unique field value/values, UPDATE, INSERT and DELETE). More complex queries can be defined in database and/or tables config. The main goal is to separate SQL queries out of PHP code and provide an easy way for CRUD operations.

Features

Requirements

Installation

composer require v-dem/queasy-db

It will also install v-dem/queasy-helper.

Usage

Notes

IMPORTANT!

Initialization

Sample:

Or:

Or PDO-way:

Get all records from users table

Using foreach with users table

Get single record from users table by id key

It's possible to use select() method to pass PDO options; select() returns PDOStatement instance:

Get multiple records

Insert a record into users table using associative array

Insert a record into users table by fields order

Insert many records into users table using associative array (it will generate single INSERT statement)

Insert many records into users table by order

Inserting many records into users table with field names denoted separately

Also it's possible to use insert() method (in the same way as above) when need to pass PDO options; returns last insert id for single insert and number of inserted rows for multiple inserts:

Get last insert id (alias of lastInsertId() method)

Update a record in users table by id key

Update multiple records

Delete a record in users table by id key

Delete multiple records

Get count of all records in users table

Using transactions

Run custom query (returns PDOStatement)

Run query predefined in configuration

This feature can help keep code cleaner and place SQL code outside PHP, somewhere in config files.

Also it is possible to group predefined queries by tables:

Using v-dem/queasy-db together with v-dem/queasy-config and v-dem/queasy-log

config.php:

Initializing:


All versions of queasy-db with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-pdo Version *
psr/log Version 1.0.1
v-dem/queasy-helper Version 1.*
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 v-dem/queasy-db contains the following files

Loading the files please wait ....