定制 ixnode/php-dsn-parser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ixnode/php-dsn-parser

最新稳定版本:0.1.1

Composer 安装命令:

composer require ixnode/php-dsn-parser

包简介

PHP DSN parser - This library helps to parse DSN\URI strings.

README 文档

README

Release PHP PHPStan PHPUnit PHPCS PHPMD Rector - Instant Upgrades and Automated Refactoring LICENSE

This library helps to parse DSN\URI strings.

1. Usage

use Ixnode\PhpDsnParser\DsnParser;
$dsnParser = new DsnParser('smtp://suserweb:S22jD7Po%.,/zu34k@mail.domain.tld:25?verify_peer=0');

print_r($dsnParser->getParsed());
// (array) [
//     'protocol' => 'smtp',
//     'user' => 'suserweb',
//     'password' => 'S22jD7Po%.,/zu34k',
//     'host' => 'mail.domain.tld',
//     'port' => 25,
//     'options' => 'verify_peer=0',
// ]

2. Installation

composer require ixnode/php-dsn-parser
vendor/bin/php-dsn-parser -V
php-dsn-parser 0.1.0 (03-07-2023 01:17:26) - Björn Hempel <bjoern@hempel.li>

3. Library development

git clone git@github.com:ixnode/php-dsn-parser.git && cd php-dsn-parser
composer install
composer test

4. License

This library is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-16