kartmax/dsn-parser
Larablocks Analysis
kartmax/dsn-parser works with any PHP project: the latest release (1.0.2, Nov 3, 2023) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Nov 3, 2023)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 3, 2023.
- No releases in the last 12 months.
- First released: Nov 3, 2023.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require kartmax/dsn-parser |
|
| Latest Version: | 1.0.2 |
| License: | MIT |
| Last Updated: | Nov 3, 2023 |
| Links: | GitHub · Packagist |
DSN Parser
A simple DSN parser for PHP projects.
Installation
Via Composer:
composer require kartmax/dsn-parser "^1.0.2"
Sample DSN
MYSQL_VX_CART_DB_DSN_READ_ONLY=mysql://user:password@127.0.0.1:3306/dbname?charset=utf8mb4
Usage
$dsnDetails = DsnParser::parse();
## Installation for Laravel
If you're using Laravel 5.5 and above, the package will automatically register its service provider.
For older versions of Laravel:
Add the service provider to the `providers` array in `config/app.php`:
```php
DsnParser\Providers\DsnServiceProvider::class,
Installation for Lumen
Register the service provider in bootstrap/app.php:
$app->register(DsnParser\Providers\DsnServiceProvider::class);
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | License |
|---|---|---|
| 1.0.2 | MIT | |
| 1.0.1 | MIT |