2017 © Pedro Peláez
 

library database

Database access library

image

othercode/database

Database access library

  • Tuesday, October 17, 2017
  • by othercode
  • Repository
  • 2 Watchers
  • 2 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

OtherCode Database

Build Status Latest Stable Version License Total Downloads, (*1)

Light database abstraction layer (PDO), (*2)

Currently supported:, (*3)

  • MySQL
  • SQLite
  • Postgres

Installation

To install the package we only have to add the dependency to composer.json file:, (*4)

"require": {
  "othercode/database": "*"
}

And run the following command:, (*5)

composer update

Install without Composer

Also we can use this library without Composer, we only have to include in our script the "database/autoload.php" file., (*6)

require_once "database/autoload.php".

Configuration

Now we have to create the instance and add a new connection to it., (*7)

$db = new OtherCode\Database\Database();

$db->addConnection(array(
    'driver' => 'mysql',
    'host' => 'localhost',
    'dbname' => 'test',
    'username' => 'username',
    'password' => 'password'
));

The Versions

17/10 2017

dev-develop

dev-develop

Database access library

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by David Unay Santisteban

09/06 2017

dev-master

9999999-dev

Database access library

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by David Unay Santisteban

08/05 2017

v2.0

2.0.0.0

Database access library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by David Unay Santisteban