{"id":15089766,"url":"https://github.com/marella/phig","last_synced_at":"2026-01-04T22:06:01.973Z","repository":{"id":62523980,"uuid":"53027491","full_name":"marella/phig","owner":"marella","description":"PHP Config library.","archived":false,"fork":false,"pushed_at":"2016-03-20T16:34:27.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T10:08:42.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/marella/phig/wiki","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/marella.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-03T06:40:25.000Z","updated_at":"2016-03-05T20:08:16.000Z","dependencies_parsed_at":"2022-11-02T14:15:27.519Z","dependency_job_id":null,"html_url":"https://github.com/marella/phig","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fphig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fphig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fphig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fphig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marella","download_url":"https://codeload.github.com/marella/phig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244814977,"owners_count":20514860,"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":"2024-09-25T09:01:32.243Z","updated_at":"2026-01-04T22:06:01.901Z","avatar_url":"https://github.com/marella.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phig\n\n[![Coverage Status](https://coveralls.io/repos/github/marella/phig/badge.svg?branch=master)](https://coveralls.io/github/marella/phig?branch=master)\n[![Build Status](https://travis-ci.org/marella/phig.svg?branch=master)](https://travis-ci.org/marella/phig)\n[![StyleCI](https://styleci.io/repos/53027491/shield?style=flat)](https://styleci.io/repos/53027491)\n[![Latest Stable Version](https://poser.pugx.org/marella/phig/v/stable)](https://packagist.org/packages/marella/phig) [![Total Downloads](https://poser.pugx.org/marella/phig/downloads)](https://packagist.org/packages/marella/phig) [![Latest Unstable Version](https://poser.pugx.org/marella/phig/v/unstable)](https://packagist.org/packages/marella/phig) [![License](https://poser.pugx.org/marella/phig/license)](https://packagist.org/packages/marella/phig)\n\nPHP Config Library.\n\n\n### Quick Usage\n\n```sh\ncomposer require marella/phig\n```\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\n$loader = new \\Phig\\ConfigLoader();\n$config = $loader-\u003eread(__DIR__.'/config');\n\n$timezone = $config['app.timezone']; // 'UTC'\n$locale = $config['app']['locale']; // 'en'\n$database = $config['database']; // array\n$host = $database['host']; // 'localhost'\n```\n\nwhere `config` directory contains these files:\n\n`app.php`\n```php\n\u003c?php\n\nreturn [\n    'timezone' =\u003e 'UTC',\n    'locale' =\u003e 'en',\n];\n```\n\n`database.php`\n```php\n\u003c?php\n\nreturn [\n    'host' =\u003e 'localhost',\n    'database' =\u003e 'forge',\n    'username' =\u003e 'forge',\n    'password' =\u003e '',\n];\n```\n\n### Documentation\nSee the **[wiki]** for more details and documentation.\n\n### Contributing\nSee [contributing guidelines] before creating issues or pull requests.\n\n### License\nOpen-source software released under [the MIT license][license].\n\n[wiki]: https://github.com/marella/phig/wiki\n[contributing guidelines]: /.github/CONTRIBUTING.md\n[license]: /LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarella%2Fphig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarella%2Fphig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarella%2Fphig/lists"}