{"id":43390695,"url":"https://github.com/tinyappsde/yaml-config","last_synced_at":"2026-02-02T13:03:01.248Z","repository":{"id":57070135,"uuid":"415057580","full_name":"tinyappsde/yaml-config","owner":"tinyappsde","description":"Simple PHP library for using yaml config files","archived":false,"fork":false,"pushed_at":"2022-05-15T15:33:05.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T12:57:02.803Z","etag":null,"topics":["config","php","php-library","yaml"],"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/tinyappsde.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":"2021-10-08T16:32:47.000Z","updated_at":"2023-06-21T15:01:33.000Z","dependencies_parsed_at":"2022-08-24T10:40:57.927Z","dependency_job_id":null,"html_url":"https://github.com/tinyappsde/yaml-config","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tinyappsde/yaml-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyappsde%2Fyaml-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyappsde%2Fyaml-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyappsde%2Fyaml-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyappsde%2Fyaml-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyappsde","download_url":"https://codeload.github.com/tinyappsde/yaml-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyappsde%2Fyaml-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T12:48:30.580Z","status":"ssl_error","status_checked_at":"2026-02-02T12:46:38.384Z","response_time":58,"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":["config","php","php-library","yaml"],"created_at":"2026-02-02T13:02:49.872Z","updated_at":"2026-02-02T13:02:56.419Z","avatar_url":"https://github.com/tinyappsde.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Unit Tests](https://github.com/tinyappsde/yaml-config/actions/workflows/unit-test.yml/badge.svg?branch=master)](https://github.com/tinyappsde/yaml-config/actions/workflows/unit-test.yml)\n\n# YAML Config\nSimple PHP library for conveniently using yaml config files and (optional) loading into environment variables.\n\n## Requirements\nPHP ^8.0 or ^8.1 ~~and php-yaml extension~~ (v1.2.0 is based on symfony/yaml instead)\n\nYou can use v1.0.2 or lower for PHP 7.4 compatibility (requires the php-yaml extension though).\n\n## Installation\n`composer require tinyapps/yaml-config`\n\n## Usage\n\n### Config\n```php\n$config = new \\TinyApps\\YamlConfig\\Config(__DIR__ . '/config.yml');\n\nvar_dump($config-\u003eget('your_variable')); // or\nvar_dump($config['your_variable']); // or\nvar_dump($config-\u003eyour_variable);\n\n// You can also set the config directory once for easier access\n\\TinyApps\\YamlConfig\\Config::setConfigDir(__DIR__ . '/example-configs');\n\n$config = new Config('example'); // will read example-configs/example.yml\n$config = new Config('sub/test'); // will read example-configs/sub/test.yml\n```\n\n### Load into environment variables\n```php\nTinyApps\\YamlConfig\\EnvLoader::init(__DIR__ . '/env.yml');\nvar_dump(getenv('your_environment_variable'));\n```\n\n### Get a single value from a config (static context)\n```php\nTinyApps\\YamlConfig\\Config::getConfigValue('example', 'property'); // returns the \"property\" value from example config\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyappsde%2Fyaml-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyappsde%2Fyaml-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyappsde%2Fyaml-config/lists"}