nahk/sql-pdo-class

There is no license information available for the latest version (dev-master) of this package.

dev-master / 1.0.x-dev 2014-04-29 15:18 UTC

This package is not auto-updated.

Last update: 2024-10-08 01:53:51 UTC


README

A shortcut class of PDO to use with any SQL Database (for now)

Installation

First, you need composer. Download it :

curl -sS https://getcomposer.org/installer | php

Look if he's installed :

php composer.phar

And then install the project :

php composer.phar install

In the composer.json of your project, add :

"require": {
    "nahk/sql-pdo-class": ">=1.0-dev"
}

Usage example :

<?php 
// example.php

require __DIR__.'/vendor/autoload.php';

use Nahk\PDO\SQL;

$sql = new SQL('host', 'db', 'user', 'pass');

Running Tests

To run tests, execute the command :

vendor/bin/phpunit

Or you could use your global installation of PHPUnit to do so.