{"id":18610564,"url":"https://github.com/ixnode/php-dsn-parser","last_synced_at":"2025-11-02T21:30:24.415Z","repository":{"id":195083578,"uuid":"692412334","full_name":"ixnode/php-dsn-parser","owner":"ixnode","description":"PHP DSN parser - This library helps to parse DSN\\URI strings.","archived":false,"fork":false,"pushed_at":"2023-09-16T12:24:41.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T01:41:39.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ixnode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-16T11:54:43.000Z","updated_at":"2024-06-12T09:28:50.000Z","dependencies_parsed_at":"2023-09-16T13:08:51.445Z","dependency_job_id":null,"html_url":"https://github.com/ixnode/php-dsn-parser","commit_stats":null,"previous_names":["ixnode/php-dsn-parser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-dsn-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-dsn-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-dsn-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-dsn-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixnode","download_url":"https://codeload.github.com/ixnode/php-dsn-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400606,"owners_count":19632051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:11:03.864Z","updated_at":"2025-11-02T21:30:24.371Z","avatar_url":"https://github.com/ixnode.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP DSN Parser\n\n[![Release](https://img.shields.io/github/v/release/ixnode/php-dsn-parser)](https://github.com/ixnode/php-dsn-parser/releases)\n[![](https://img.shields.io/github/release-date/ixnode/php-dsn-parser)](https://github.com/ixnode/php-dsn-parser/releases)\n![](https://img.shields.io/github/repo-size/ixnode/php-dsn-parser.svg)\n[![PHP](https://img.shields.io/badge/PHP-^8.2-777bb3.svg?logo=php\u0026logoColor=white\u0026labelColor=555555\u0026style=flat)](https://www.php.net/supported-versions.php)\n[![PHPStan](https://img.shields.io/badge/PHPStan-Level%20Max-777bb3.svg?style=flat)](https://phpstan.org/user-guide/rule-levels)\n[![PHPUnit](https://img.shields.io/badge/PHPUnit-Unit%20Tests-6b9bd2.svg?style=flat)](https://phpunit.de)\n[![PHPCS](https://img.shields.io/badge/PHPCS-PSR12-416d4e.svg?style=flat)](https://www.php-fig.org/psr/psr-12/)\n[![PHPMD](https://img.shields.io/badge/PHPMD-ALL-364a83.svg?style=flat)](https://github.com/phpmd/phpmd)\n[![Rector - Instant Upgrades and Automated Refactoring](https://img.shields.io/badge/Rector-PHP%208.2-73a165.svg?style=flat)](https://github.com/rectorphp/rector)\n[![LICENSE](https://img.shields.io/github/license/ixnode/php-api-version-bundle)](https://github.com/ixnode/php-api-version-bundle/blob/master/LICENSE)\n\n\u003e This library helps to parse DSN\\URI strings.\n\n## 1. Usage\n\n```php\nuse Ixnode\\PhpDsnParser\\DsnParser;\n```\n\n```php\n$dsnParser = new DsnParser('smtp://suserweb:S22jD7Po%.,/zu34k@mail.domain.tld:25?verify_peer=0');\n\nprint_r($dsnParser-\u003egetParsed());\n// (array) [\n//     'protocol' =\u003e 'smtp',\n//     'user' =\u003e 'suserweb',\n//     'password' =\u003e 'S22jD7Po%.,/zu34k',\n//     'host' =\u003e 'mail.domain.tld',\n//     'port' =\u003e 25,\n//     'options' =\u003e 'verify_peer=0',\n// ]\n```\n\n## 2. Installation\n\n```bash\ncomposer require ixnode/php-dsn-parser\n```\n\n```bash\nvendor/bin/php-dsn-parser -V\n```\n\n```bash\nphp-dsn-parser 0.1.0 (03-07-2023 01:17:26) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## 3. Library development\n\n```bash\ngit clone git@github.com:ixnode/php-dsn-parser.git \u0026\u0026 cd php-dsn-parser\n```\n\n```bash\ncomposer install\n```\n\n```bash\ncomposer test\n```\n\n## 4. License\n\nThis library is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-dsn-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixnode%2Fphp-dsn-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-dsn-parser/lists"}