PHPackages                             lfphp/pdodsn - 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. [Database &amp; ORM](/categories/database)
4. /
5. lfphp/pdodsn

ActiveLibrary[Database &amp; ORM](/categories/database)

lfphp/pdodsn
============

PHP PDO DSN Library

1.0.6(8mo ago)05.4k↓28.9%1MITPHPPHP &gt;=7.1

Since Jul 12Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/sasumi/PDODSN)[ Packagist](https://packagist.org/packages/lfphp/pdodsn)[ Docs](http://blog.yikepi.com/)[ RSS](/packages/lfphp-pdodsn/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (20)Used By (1)

\#PDODSN

> PDODSN is developed and tested based on PHP5.6+PDO or above environment

The PDODSN library is used to parse PDO-DSN strings. The framework library recognizes the DSN mark and parses out the response database type, driver, port and other information (note that each database type has different fields). Please strictly distinguish the differences between different database types, usage drivers, and usage modes during use.

1. Installation
---------------

[](#1-installation)

```
composer require lfphp/pdodsn
```

2. Use
------

[](#2-use)

Parse DSN string

```
