PHPackages                             e-kevin/yii-dsn-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. e-kevin/yii-dsn-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

e-kevin/yii-dsn-helper
======================

dsn helpers class

1.1.0(5y ago)118MITPHP

Since Dec 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/e-kevin/yii-dsn-helper)[ Packagist](https://packagist.org/packages/e-kevin/yii-dsn-helper)[ Docs](https://github.com/e-kevin/yii-dsn-helper)[ RSS](/packages/e-kevin-yii-dsn-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Dsn connection string parsing
-----------------------------

[](#dsn-connection-string-parsing)

parsing dsn connection strings for most databases.

Usage
-----

[](#usage)

```
use ekevin\dsn\Dsn;

// parse dsn
$dsn = Dsn::parse("mysql:host='localhost';dbname='testDb';port=3306");

// build dsn
$dsn = Dsn::build([
    'scheme'   => 'mysql',
    'hostname' => 'localhost',
    'port'     => '3306',
    'dbname'   => 'testDb',
])->dsn;
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

1974d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef0fd33526ea9ecb0881af0f45e9f93a9bf01e23f590438a446fc9b055cf2c4b?d=identicon)[e-kevin](/maintainers/e-kevin)

---

Top Contributors

[![e-kevin](https://avatars.githubusercontent.com/u/3927528?v=4)](https://github.com/e-kevin "e-kevin (3 commits)")

---

Tags

helperdsnyii

### Embed Badge

![Health badge](/badges/e-kevin-yii-dsn-helper/health.svg)

```
[![Health](https://phpackages.com/badges/e-kevin-yii-dsn-helper/health.svg)](https://phpackages.com/packages/e-kevin-yii-dsn-helper)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)[enqueue/dsn

Parse DSN

12525.5M45](/packages/enqueue-dsn)[beste/json

A simple JSON helper to decode and encode JSON

4222.7M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
