{"id":17844302,"url":"https://github.com/usox/hacore","last_synced_at":"2025-04-02T15:10:42.912Z","repository":{"id":57076168,"uuid":"85507871","full_name":"usox/hacore","owner":"usox","description":"Read json configs in hack strict mode","archived":false,"fork":false,"pushed_at":"2019-02-15T07:33:17.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T05:44:40.416Z","etag":null,"topics":["config","hacklang","hhvm","json"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/usox.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":"2017-03-19T20:53:07.000Z","updated_at":"2019-02-15T07:33:18.000Z","dependencies_parsed_at":"2022-08-24T14:55:49.172Z","dependency_job_id":null,"html_url":"https://github.com/usox/hacore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhacore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhacore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhacore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usox%2Fhacore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usox","download_url":"https://codeload.github.com/usox/hacore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837683,"owners_count":20841903,"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":["config","hacklang","hhvm","json"],"created_at":"2024-10-27T21:28:38.659Z","updated_at":"2025-04-02T15:10:42.891Z","avatar_url":"https://github.com/usox.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/usox/hacore.svg?branch=master)](https://travis-ci.org/usox/hacore)\n\nHacore - Hack Config Reader\n===========================\n\nHacore provides a simple approach to read json formatted config files in hack\nstrict mode.\n\nSample config\n-------------\n\nHacore treats all config values as strings and will explicitly cast them. To\naccess the values of a single key, just use `getLeaf($key_name)`. To get a\ncomplete branch of options, use `getBranch($key_name)`.\n\n```json\n{\n\t\"foo\":\"bar\",\n\t\"barfoo\":666,\n\t\"more\":{\n\t\t\"config\":\"options\"\n\t}\n}\n```\n\n```php\n$reader = new \\Usox\\Hacore\\Reader();\n$reader-\u003eload('path-to-config.json')\n\n$reader-\u003egetLeaf('foo'); // returns 'bar'\n$reader-\u003egetLeaf('barfoo'); // returns '666'\n$reader-\u003egetBranch('more'); // returns a new Reader instance\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusox%2Fhacore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusox%2Fhacore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusox%2Fhacore/lists"}