nahk / sql-pdo-class

A shortcut class of PDO to use with MySQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sql-pdo-class

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.

About

A shortcut class of PDO to use with MySQL

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%