New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kartmax/dsn-parser

A DSN parser for Mysql connection to support Laravel, Lumen and Core PHP
304

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 advised

Not 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
Maintainer: kartmax-tech

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

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT