{"id":47868691,"url":"https://github.com/linkorb/hiera-php","last_synced_at":"2026-04-04T00:41:56.808Z","repository":{"id":29570100,"uuid":"33109558","full_name":"linkorb/hiera-php","owner":"linkorb","description":"Hiera implemented in PHP","archived":false,"fork":false,"pushed_at":"2015-03-30T08:35:16.000Z","size":136,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-04T07:21:28.546Z","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/linkorb.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":"2015-03-30T07:44:03.000Z","updated_at":"2024-04-04T07:21:28.547Z","dependencies_parsed_at":"2022-09-03T17:51:05.544Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/hiera-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linkorb/hiera-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fhiera-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fhiera-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fhiera-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fhiera-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/hiera-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fhiera-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31383634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"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":[],"created_at":"2026-04-04T00:41:56.268Z","updated_at":"2026-04-04T00:41:56.797Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hiera implemented in PHP\n======\n\n## What is Hiera?\nAccording to the [Hiera website](http://docs.puppetlabs.com/hiera/):\n\n    Hiera is a key/value lookup tool for configuration data.\n    \nHiera uses a configurable hierarchy to enable \"Cascading Configuration\".\n\nIt's great for infrastructure configuration (which is why it's used in Puppet),\nbut it also applies to multi-tenancy applications.\n\nHiera-PHP tries to be as much of a direct port as possible, maintaining\nsupport for original configuration files, and even internal classnames and interfaces.\n\n## Usage\n\nhiera-php can be used both as a library, and as a console-tool\n\n### Library\n\n```php\nuse Hiera\\Hiera;\nuse Hiera\\Scope;\nuse Hiera\\ConfigLoader\\YamlConfigLoader;\n\n$scope = new Scope();\n$scope-\u003esetVariable('::environment', 'production');\n$scope-\u003esetVariable('::clientcert', 'web01.dc1.example.webx');\n$scope-\u003esetVariable('::country', 'nl');\n$hiera = new Hiera();\n$loader = new YamlConfigLoader();\n$loader-\u003eload($hiera, $path_to_hiera_yaml_file);\n\n$key = 'some_configuration_key';\n$answer = $hiera-\u003elookup($key, '#default#', $scope);\n```\n\n\n### Console tool\n\n```\nvendor/bin/hiera-php hiera:lookup some_configuration_key\n```\n\n\n## Features\n\n* [x] Supports loading original `hiera.yaml` files\n* [x] Supports pluggable backends\n* [x] Yaml backend included (supporting original configuration yaml files)\n* [x] Command line utility to perform lookups\n* [x] Embeddable as a library\n* [ ] Json backend\n* [ ] Database (PDO, Redis, etc) backends\n* [ ] Memcached backend\n* [ ] Array merge strategies\n\nContributions are very welcome!\n\n## License\n\nMIT (see [LICENSE.md](LICENSE.md))\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).\n\nBtw, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fhiera-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fhiera-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fhiera-php/lists"}