b2pweb/bdf-dsn
Simple PHP DSN parser for database connection strings. Parse URL-style (mysql://user:pass@host/db?timeout=3) and PDO DSN format (mysql:host=...;dbname=...;timeout=...) into an easy-to-use object/array.
mysql://user:pass@host/db) into structured configurations. Useful for:
config/database.php dynamically.mysql://user:pass@host/db, pdo_mysql:host=host;dbname=db).dsn-parser or Laravel’s built-in parseDSN()).parseDSN() already meets your needs (e.g., for core database configuration).For Executives: *"This lightweight PHP package standardizes how our Laravel applications parse database connection strings (DSNs), reducing manual errors and improving security in non-core workflows. By adopting it, we can:
For Engineering:
*"Problem: Parsing DSNs like mysql://user:pass@host/db manually is error-prone and inconsistent across services. Solution: This package provides a zero-config, dependency-light parser for PDO-compatible DSNs, supporting both mysql:// and pdo_mysql: formats.
Why now?
config/database structure.
Next steps:parseDSN() or dsn-parser).How can I help you explore Laravel packages today?