{"id":29167462,"url":"https://github.com/ceccode/env-config","last_synced_at":"2025-07-01T09:09:56.179Z","repository":{"id":25992663,"uuid":"29434979","full_name":"ceccode/env-config","owner":"ceccode","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-26T23:52:26.000Z","size":184,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-24T02:50:10.118Z","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/ceccode.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":"2015-01-18T17:57:35.000Z","updated_at":"2017-11-14T17:34:37.000Z","dependencies_parsed_at":"2022-08-29T01:10:33.847Z","dependency_job_id":null,"html_url":"https://github.com/ceccode/env-config","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ceccode/env-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceccode%2Fenv-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceccode%2Fenv-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceccode%2Fenv-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceccode%2Fenv-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceccode","download_url":"https://codeload.github.com/ceccode/env-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceccode%2Fenv-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262933330,"owners_count":23386786,"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","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":"2025-07-01T09:09:52.986Z","updated_at":"2025-07-01T09:09:56.092Z","avatar_url":"https://github.com/ceccode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envconfig\n\n[![Build Status](https://travis-ci.org/ceccode/env-config.svg?branch=master)](https://travis-ci.org/ceccode/env-config)\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ceccode/env-config/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ceccode/env-config/?branch=master)\n\nenv-config is a JSON config file loader based on environment var.\n\n## examples\n\n\n```php\n//Apache\n//setEnv environment production\n\n$conf = Config::get('environment','config', (__DIR__ . '/my_config_dir'));\n$conf = Config::get('environment', 'config')\n\n$dbname = $conf['database']['name'];\n```\n\n\n###todo\n\n• add tests\n• add json file examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceccode%2Fenv-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceccode%2Fenv-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceccode%2Fenv-config/lists"}