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.
No changes since beta2.
No changes since 0.1.1.
Support for PHP 7.3.
Initial release.
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 = new \Nyholm\Dsn\DsnParser::parse('mysql://localhost');
How can I help you explore Laravel packages today?