{"id":16750004,"url":"https://github.com/hakobyansen/phpenv","last_synced_at":"2025-08-03T11:13:27.774Z","repository":{"id":56954925,"uuid":"169820552","full_name":"hakobyansen/phpenv","owner":"hakobyansen","description":"Class for storing and reading environment variables from .env files stored in document root.","archived":false,"fork":false,"pushed_at":"2020-11-19T17:57:56.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T04:21:18.765Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakobyansen.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}},"created_at":"2019-02-09T01:27:02.000Z","updated_at":"2020-11-19T17:57:29.000Z","dependencies_parsed_at":"2022-08-21T04:00:10.787Z","dependency_job_id":null,"html_url":"https://github.com/hakobyansen/phpenv","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hakobyansen/phpenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobyansen%2Fphpenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobyansen%2Fphpenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobyansen%2Fphpenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobyansen%2Fphpenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakobyansen","download_url":"https://codeload.github.com/hakobyansen/phpenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakobyansen%2Fphpenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268531912,"owners_count":24265250,"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-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2024-10-13T02:26:43.732Z","updated_at":"2025-08-03T11:13:27.728Z","avatar_url":"https://github.com/hakobyansen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpenv\nClass for storing and reading environment variables from \".env\" file.\n\n## Installation\n\nTo install the package using composer run `composer require codebot/phpenv:1.0.*`\n\n## Usage\nYou need to create the \".env\" file in your project root and define your environment variables there.  \nProject root is the directory returned by `$_SERVER['DOCUMENT_ROOT']` variable.  \nIf you want to store the .env file somewhere else, you can pass the full path of your .env file as a first argument of `getInstance()` method, e.g. `Env\\Core\\Env::getInstance( '/path/to/.env' )`.\n\nExample of the .env file:\n\n```\n# Test .env file\nAPP_NAME=The Phpenv Package\nAPP_ENV=local\n```\n\nExample of the usage:\n\n```php\n$env = Env\\Env::getInstance();\n\n$env-\u003eget('APP_ENV');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakobyansen%2Fphpenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakobyansen%2Fphpenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakobyansen%2Fphpenv/lists"}