Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.08 KB

README.md

File metadata and controls

70 lines (47 loc) · 2.08 KB

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 [email protected] instead of using the issue tracker.

Credits

License

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