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
Requires
- php: >=5.0.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-07-01 05:53:04 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.