Download the PHP package davahome/database without Composer

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

davahome/database

Tests

davahome/database is a small php library which provides a very simple PDO based MySQL wrapper. Its main functionality is to provide some additional functionality to the basic PDO object.

The DavaHome\Database\Adapter\MySQL class is directly derived from PDO and provides all of its methods. There are some additional features like:

Installation

Basic Operation Methods

These methods are forced by the DavaHome\Database\Adapter\AdapterInterface and are supported by all database handlers

select

Select rows from database. The where statement is an associative array with tableColumn => value convention.

update

Update existing rows in the database. The values are an associative array, exactly like the where statement from the select method.

insert

Insert a new row into the database. The values are an associative array, exactly like the where statement from the select method.

delete

Delete existing rows from the database. The where statement is identical to the select method.

Mysql

Example

Additional Mysql methods

createUuid

This method creates a uuid which can be used as non-incremental unique index. See the MySQL documentation for further information.

execute

Creates a prepared statement which will be executed directly

setIsolationLevel

Set the isolation level of transactions in the current connection

Advanced queries

To provide a more advanced functionality for the basic operation methods there are additional classes.

DirectValue

The DirectValue class allows to use MySQL functions or a increment-queries through the basic operation methods. All arguments given to the DirectValue class will be passed 1-2-1 into the query. There will be no escaping for those values!

CustomOperator

The CustomOperator class allows to override the default operator used by all basic operation methods (=). You can also combine the CustomOperator with the DirectValue class.


All versions of database with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-pdo Version *
ext-json 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 davahome/database contains the following files

Loading the files please wait ....