Database abstraction layer
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Changed copyright info Sep 3, 2018
tests Changed copyright info Sep 3, 2018
.gitattributes Update Jun 23, 2016
.gitignore Removed docs May 22, 2018
.travis.yml Fixed travis Jun 1, 2018 Fixed date Jun 5, 2018
LICENSE first commit Nov 14, 2013
NOTICE Changed copyright info Sep 3, 2018 Updated Sep 4, 2018
autoload.php Changed copyright info Sep 3, 2018
composer.json Updated Sep 4, 2018
phpunit.xml Added schema tests May 31, 2018

Opis Database

Build Status Latest Stable Version Latest Unstable Version License

Database abstraction layer

Opis Database is a library that implements an abstraction layer over the PDO extension, by providing a powerful query builder along with an easy to use schema builder. The aim of the library is to provide an unified way of interacting with databases, no matter of the underlying relational database management system.

Currently, we are officially supporting MySQL, PostgreSQL, Microsoft SQL, and SQLite. We also provide experimental support - without any commitment regarding bug fixes and updates - for Firebird, IBM DB2, Oracle, and NuoDB query builder.


The full documentation for this library can be found here


Opis Database is licensed under the Apache License, Version 2.0


  • PHP 7.0.* or higher
  • PDO


Opis Database is available on Packagist and it can be installed from a command line interface by using Composer.

composer require opis/database

Or you could directly reference it into your composer.json file as a dependency

    "require": {
        "opis/database": "^4.0"