Registry / utility / nyholm-dsn

nyholm-dsn

JSON →
library2.0.1phppackagistunverified

Parse your DSN strings in a powerful and flexible way.

composer require nyholm/dsn
INSTALL
IMPORT
SIG · NYHOLM-DSN
N
nyholm-dsn
utilityphpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DsnParser
use Nyholm\Dsn\DsnParser;

Parse a DSN string and access its components.

use Nyholm\Dsn\DsnParser; $dsn = DsnParser::parse('mysql://user:pass@localhost/db'); echo $dsn->getHost(); // localhost
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nyholm-dsn — pip install nyholm-dsn · libregistry