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

Fixed

  • Improve parsing of nested functions
2.0.0

No changes since beta2.

1.0.0

No changes since 0.1.1.

0.1.1

Support for PHP 7.3.

0.1.0

Initial release.

2.0.0@beta2

Added

  • DsnParser::parseUrl(string $dsn): Url
  • DsnParser::parsePath(string $dsn): Path
2.0.0@beta1

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 = new \Nyholm\Dsn\DsnParser::parse('mysql://localhost');
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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource