{"id":43249728,"url":"https://github.com/jsefton/php-dotenv-parser","last_synced_at":"2026-02-01T12:56:34.551Z","repository":{"id":57002290,"uuid":"99624242","full_name":"jsefton/php-dotenv-parser","owner":"jsefton","description":"Allows you get .env file as array and convert array back to .env file","archived":false,"fork":false,"pushed_at":"2018-02-28T17:04:19.000Z","size":3,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T20:55:13.280Z","etag":null,"topics":["dotenv","dotenv-editor","dotenv-helper","env","environment-variables","php"],"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/jsefton.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}},"created_at":"2017-08-07T22:00:57.000Z","updated_at":"2020-05-21T19:29:26.000Z","dependencies_parsed_at":"2022-08-21T14:10:40.678Z","dependency_job_id":null,"html_url":"https://github.com/jsefton/php-dotenv-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jsefton/php-dotenv-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsefton%2Fphp-dotenv-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsefton%2Fphp-dotenv-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsefton%2Fphp-dotenv-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsefton%2Fphp-dotenv-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsefton","download_url":"https://codeload.github.com/jsefton/php-dotenv-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsefton%2Fphp-dotenv-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28978491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T12:13:08.691Z","status":"ssl_error","status_checked_at":"2026-02-01T12:13:08.356Z","response_time":56,"last_error":"SSL_read: 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":["dotenv","dotenv-editor","dotenv-helper","env","environment-variables","php"],"created_at":"2026-02-01T12:56:31.822Z","updated_at":"2026-02-01T12:56:34.234Z","avatar_url":"https://github.com/jsefton.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PHP DotEnv Parser\n\nThis easy tool allows you to pass a `.env` file and be returned a parsed array.\n\nYou can then add or edit values from this array.\n\nThis parser also allows you to pass an array and store as a valid `.env` file to be used.\n\n\n### Installation\n\nYou will need composer to install this package (get composer). Then run:\n\n```bash\ncomposer require jsefton/php-dotenv-parser\n```\n\n\n### Usage\n\nTo parse a `.env` file to an array pass in the path like below:\n\n```php\n$env = \\Jsefton\\DotEnv\\Parser::envToArray('/path/to/.env');\n```\n\nTo store an array into a `.env` file pass the array along with the path to store it:\n\n```php\n\\Jsefton\\DotEnv\\Parser::arrayToEnv($array, '/path/to/.env');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsefton%2Fphp-dotenv-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsefton%2Fphp-dotenv-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsefton%2Fphp-dotenv-parser/lists"}