Weave Code
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity