PHPackages                             zobaken/daltron - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zobaken/daltron

ActiveLibrary[Database &amp; ORM](/categories/database)

zobaken/daltron
===============

PHP database abstraction layer

0.3.3(7y ago)050MITPHPPHP &gt;=7.0

Since Dec 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zobaken/daltron)[ Packagist](https://packagist.org/packages/zobaken/daltron)[ RSS](/packages/zobaken-daltron/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Introduction
============

[](#introduction)

Database Abstraction Layer for PHP.

Created to be simply as possible tool for creating and running SQL queries. Currently supports mysql and postgresql drivers.

Requirements
============

[](#requirements)

PHP7, mysqli extension for Mysql support. pgsql extension for postgres..

Installation
============

[](#installation)

Install it via composer:

```
composer require zobaken/daltron

```

Configuration
=============

[](#configuration)

First we need to set configuration:

```
\Dal\Dal::setConfiguration([
    'host' => '192.168.99.100',
    'user' => 'test',
    'password' => 'test',
    'dbname' => 'test',
    'driver' => 'mysql',
]);
```

It is possible to load configuration from file. For example 'config.php' can look like:

```
