nahk / sql-pdo-class
Installs: 36
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/nahk/sql-pdo-class
Requires
- php: >=5.0.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-12-30 08:12:01 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.