romainbessugesmeusy/php-dsn-factory

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

DSN Factory for PDO

Installs: 35 443

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/romainbessugesmeusy/php-dsn-factory

dev-master 2013-03-04 13:32 UTC

This package is not auto-updated.

Last update: 2025-10-05 07:20:31 UTC


README

Tired of going on http://php.net because you can't remember how's constructed the DSN you need ?

$dsn = new Dsn(Dsn::MYSQL, [
    "host" => "127.0.0.1",
    "port" => "3306",
    "dbname" => "my_database",
]);


$dsn = new Dsn(Dsn::SQL_SERVER, [
    "host" => "127.0.0.1",
    "port" => "3306",
    "dbname" => "my_database",
]);