{"id":23219124,"url":"https://github.com/b2pweb/bdf-dsn","last_synced_at":"2025-08-19T08:32:45.528Z","repository":{"id":62490831,"uuid":"177566564","full_name":"b2pweb/bdf-dsn","owner":"b2pweb","description":"A simple DSN parser in PHP","archived":false,"fork":false,"pushed_at":"2024-12-02T13:36:13.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T07:29:58.666Z","etag":null,"topics":["dsn","dsn-parser"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/b2pweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-25T10:43:57.000Z","updated_at":"2024-10-09T12:37:47.000Z","dependencies_parsed_at":"2024-02-26T10:48:32.147Z","dependency_job_id":null,"html_url":"https://github.com/b2pweb/bdf-dsn","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":0.6153846153846154,"last_synced_commit":"6f8c985bd3bdb2d209eddf7e0fd9194332e88602"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/b2pweb/bdf-dsn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-dsn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-dsn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-dsn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-dsn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b2pweb","download_url":"https://codeload.github.com/b2pweb/bdf-dsn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b2pweb%2Fbdf-dsn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271121770,"owners_count":24702871,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dsn","dsn-parser"],"created_at":"2024-12-18T21:19:21.481Z","updated_at":"2025-08-19T08:32:45.233Z","avatar_url":"https://github.com/b2pweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsn (data source name)\nA simple DSN parser\n\n[![build](https://github.com/b2pweb/bdf-dsn/actions/workflows/php.yml/badge.svg)](https://github.com/b2pweb/bdf-dsn/actions/workflows/php.yml)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/b2pweb/bdf-dsn/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/b2pweb/bdf-dsn/?branch=master)\n[![Packagist Version](https://img.shields.io/packagist/v/b2pweb/bdf-dsn.svg)](https://packagist.org/packages/b2pweb/bdf-dsn)\n[![Total Downloads](https://img.shields.io/packagist/dt/b2pweb/bdf-dsn.svg)](https://packagist.org/packages/b2pweb/bdf-dsn)\n\n\n## Install via composer\n```bash\n$ composer require b2pweb/bdf-dsn\n```\n\n\n## Usage Instructions\n\nA basic use of DSN.\n\n```PHP\n\u003c?php\n$request = \\Bdf\\Dsn\\Dsn::parse('mysql://john:doe@localhost/testdb?timeout=3');\n\nvar_dump($request-\u003etoArray());\n```\n\nSupports pdo dsn\n\n```PHP\n\u003c?php\n$request = \\Bdf\\Dsn\\Dsn::parse('mysql:host=localhost;dbname=testdb;timeout=3');\n\nvar_dump($request-\u003etoArray());\n```\n\n\n## License\n\nDistributed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb2pweb%2Fbdf-dsn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb2pweb%2Fbdf-dsn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb2pweb%2Fbdf-dsn/lists"}