Skip to content

exileed/PDOParseDSN

Repository files navigation

PDOParseDSN

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Library to parse a PDO DSN string.

Install

Via Composer

$ composer require exileed/pdoparsedsn

Usage

$dsn = new \ExileeD\PDOParseDSN\DSN('mysql:host=127.0.0.1;port=3306;dbname=test_db');

$dsn->getProtocol(); // mysql
$dsn->getHost(); // 127.0.0.1
$dsn->getPort(); // 3306
$dsn->getDatabase(); // test_db

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email me@exileed.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Library to parse a PDO DSN string

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages