nyholm/dsn
PHP DSN parser and value object for working with connection strings. Parse and normalize DSNs for common schemes, access components like scheme, host, port, user and path, and build DSNs safely for databases, queues, mailers and more.
See change log for changes
Version 2 comes with a new definition was a DSN really is. It supports functions and a greater variety of DSN formats.
The Nyholm\Dsn class has been replaced with Nyholm\Dsn\DsnParser. To get a Dsn
object:
// Before
$dsn = new \Nyholm\DSN('mysql://localhost');
// After
$dsn = \Nyholm\Dsn\DsnParser::parse('mysql://localhost');
See change log for more changes
Make sure we decode username and password
See change log for changes
See change log for changes
First stable release.
Support for PHP 7.3
How can I help you explore Laravel packages today?