efureev/dsn
最新稳定版本:v1.0.1
Composer 安装命令:
composer require efureev/dsn
包简介
DSN Parser
README 文档
README
Description
There is no official DSN RFC. We have defined a DSN configuration string as using the following definition. The "URL looking" parts of a DSN is based from RFC 3986.
Kinds
String DSN
Template: <scheme>://<username>:<password>@<host>:<port>/<database>
http://localhostlocalhost:8080https://examlple.comexamlple.comhttp://127.0.0.1/foo/bar?key=valuememcached://127.0.0.1memcached:///var/local/run/memcached.socket?weight=25mysql://john:pass@localhost:3306/my_dbscheme:///var/local/run/memcached.socket?weight=25
Parameters DSN
Template: <scheme>:host=<host>;port=<port>;dbname=<database>
mysql:host=localhost;dbname=exampleocdb://?Driver=ODBC+Driver+13+for+SQL+Server&server=localhost&database=WideWorldImporters&trusted_connection=Yes
Install
For php >= 8.2
composer require efureev/dsn "^1.0"
Test
composer test
统计信息
- 总下载量: 2.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-26