micro-module/dsn
micro-module/dsn is a small PHP package for parsing, building, and handling DSN (Data Source Name) connection strings, making database or service connection details easier to manage in Laravel and PHP applications.
mysql://user:pass@host:3306/db?sslmode=require) instead of a six-field connection form. This package is the parsing layer behind that pattern for databases, Redis, AMQP/queues, mailers, and object storage.DATABASE_URL-style environment variables consistently across services and deploy scripts, including redacting credentials in logs and diagnostics.Consider it when:
Look elsewhere when:
league/uri or PHP's native parse_url plus your own validation.To executives: This is a small, MIT-licensed utility for turning a single connection string into structured configuration. It is not a strategic dependency and carries no license cost, but it is also unmaintained — no stars, no downstream users, no release since 2020. Recommendation: use it as a design reference for a "paste your connection URL" onboarding flow, and have engineering own a vendored copy or a short in-house equivalent rather than depend on it. Cost is a few hours of engineering; risk is near zero because the alternative is writing the same logic ourselves.
To engineering: MIT-licensed, tiny surface area, no meaningful ecosystem to inherit. Treat it as a starting point: fork it into our namespace, add tests for the schemes we actually support, add credential redaction for logging, and pin our own release. If we need rigorous URI handling or unusual schemes, we should evaluate league/uri instead and not spend time extending this. Either way, the product requirement — accept a DSN, validate it, fail with a human-readable message — stands on its own and should go on the roadmap independent of this package's fate.
How can I help you explore Laravel packages today?