Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Dsn Laravel Package

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.

View on GitHub
Deep Wiki
Context7
2.0.1

See change log for changes

2.0.0

Version 2 comes with a new definition was a DSN really is. It supports functions and a greater variety of DSN formats.

Changed

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

1.0.1

Make sure we decode username and password

2.0.0-beta2

See change log for changes

2.0.0-beta1

See change log for changes

1.0.0

First stable release.

0.1.1

Support for PHP 7.3

0.1.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels