{"id":36986516,"url":"https://github.com/nuxed/environment","last_synced_at":"2026-01-13T23:04:28.915Z","repository":{"id":56177920,"uuid":"217146181","full_name":"nuxed/environment","owner":"nuxed","description":"The Nuxed Environment component provides functions that help you manage environment variables.","archived":false,"fork":false,"pushed_at":"2020-11-22T14:59:27.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-21T04:47:47.076Z","etag":null,"topics":["dotenv","dotenv-loader","dotenv-parser","environment","environment-variables","hack","hacklang","hhvm","nuxed"],"latest_commit_sha":null,"homepage":"","language":"Hack","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/nuxed.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":"SECURITY.md","support":null}},"created_at":"2019-10-23T20:20:05.000Z","updated_at":"2020-11-22T14:57:00.000Z","dependencies_parsed_at":"2022-08-15T14:10:25.498Z","dependency_job_id":null,"html_url":"https://github.com/nuxed/environment","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nuxed/environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fenvironment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fenvironment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fenvironment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fenvironment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuxed","download_url":"https://codeload.github.com/nuxed/environment/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuxed%2Fenvironment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["dotenv","dotenv-loader","dotenv-parser","environment","environment-variables","hack","hacklang","hhvm","nuxed"],"created_at":"2026-01-13T23:04:28.182Z","updated_at":"2026-01-13T23:04:28.910Z","avatar_url":"https://github.com/nuxed.png","language":"Hack","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/45311177?s=200\u0026v=4\"\u003e\u003c/p\u003e\n\n![Coding standards status](https://github.com/nuxed/environment/workflows/coding%20standards/badge.svg?branch=develop)\n![Static analysis status](https://github.com/nuxed/environment/workflows/static%20analysis/badge.svg?branch=develop)\n![Unit tests status](https://github.com/nuxed/environment/workflows/unit%20tests/badge.svg?branch=develop)\n[![Total Downloads](https://poser.pugx.org/nuxed/environment/d/total.svg)](https://packagist.org/packages/nuxed/environment)\n[![Latest Stable Version](https://poser.pugx.org/nuxed/environment/v/stable.svg)](https://packagist.org/packages/nuxed/environment)\n[![License](https://poser.pugx.org/nuxed/environment/license.svg)](https://packagist.org/packages/nuxed/environment)\n\n# Nuxed Environment\n\nThe Nuxed Environment component provides functions that help you manage environment variables.\n\n### Installation\n\nThis package can be installed with [Composer](https://getcomposer.org).\n\n```console\n$ composer require nuxed/environment\n```\n\n### Example\n\n```hack\nuse namespace Nuxed\\Environment;\n\n\u003c\u003c__EntryPoint\u003e\u003e\nasync function main(): Awaitable\u003cvoid\u003e {\n  await Environment\\load('.env');\n\n  if(!Environment\\contains('APP_MODE')) {\n    Environment\\put('APP_MODE', 'prod');\n  }\n\n  $mode = Environment\\mode();\n  switch($mode) {\n    case Environment\\Mode::Development:\n      // Dev\n    case Environment\\Mode::Production:\n      // Prod\n    case Environment\\Mode::Test:\n      // Test\n  }\n}\n```\n\n---\n\n### Security\n\nFor information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).\n\n---\n\n### License\n\nNuxed is open-sourced software licensed under the MIT-licensed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxed%2Fenvironment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuxed%2Fenvironment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuxed%2Fenvironment/lists"}