{"id":16674564,"url":"https://github.com/settermjd/dotenv-parser","last_synced_at":"2026-04-29T03:32:23.742Z","repository":{"id":141496959,"uuid":"610203000","full_name":"settermjd/dotenv-parser","owner":"settermjd","description":"This is a small package for working with DotEnv files. ","archived":false,"fork":false,"pushed_at":"2023-03-06T10:25:09.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T12:36:36.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settermjd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-03-06T09:54:49.000Z","updated_at":"2023-03-06T15:40:30.000Z","dependencies_parsed_at":"2023-07-11T08:01:44.002Z","dependency_job_id":null,"html_url":"https://github.com/settermjd/dotenv-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/settermjd/dotenv-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdotenv-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdotenv-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdotenv-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdotenv-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/dotenv-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fdotenv-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32409105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-12T12:43:32.175Z","updated_at":"2026-04-29T03:32:23.727Z","avatar_url":"https://github.com/settermjd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotEnv Parser\n\n![testing workflow](https://github.com/settermjd/dotenv-parser/actions/workflows/test-code.yml/badge.svg)\n\nThis is a small package that can parse and work with [dotenv files](https://hexdocs.pm/dotenvy/dotenv-file-format.html).\nIt's quite new and likely needs quite a bit of work, but it's a start.\n\n## Installation\n\nInstall via [Composer](https://getcomposer.org):\n\n```bash\ncomposer require settermjd/dotenv_parser\n```\n\n## Usage\n\nThere isn't much to the package. \nYou can see an example of the package's entire functionality below.\n\n```php\n$parser = new Parser('path/to/your/dotenv/file');\n\n// Parse and retrieve the contents of the file as an associative array\n$contents = $parser-\u003egetContents();\n\n// Retrieve the value of the item with the specified key \n$parser-\u003egetItem(\"MY_KEY\");\n\n// Check if there is an item in the file with the specified key\n$parser-\u003ehasItem(\"MY_KEY\");\n\n// Add a new item to the file with the specified key and value\n$parser-\u003eaddItem('SIZE', 2);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fdotenv-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Fdotenv-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fdotenv-parser/lists"}