1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-12 11:04:03 +02:00

Document support for PostgreSQL

This commit is contained in:
Marco
2018-03-12 02:11:54 +01:00
parent 62d9e44aa4
commit 3ddc7af1b4
2 changed files with 9 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ require __DIR__.'/../vendor/autoload.php';
$db = new \PDO('mysql:dbname=php_auth;host=127.0.0.1;charset=utf8mb4', 'root', 'monkey');
// or
// $db = new \PDO('pgsql:dbname=php_auth;host=127.0.0.1;port=5432', 'postgres', 'monkey');
// or
// $db = new \PDO('sqlite:../Databases/php_auth.sqlite');
$auth = new \Delight\Auth\Auth($db);