{"id":15030209,"url":"https://github.com/teodoroleckie/config","last_synced_at":"2026-03-16T21:35:33.416Z","repository":{"id":57070536,"uuid":"361104767","full_name":"teodoroleckie/config","owner":"teodoroleckie","description":"⚡ Config is a lightweight configuration file loader. PHP","archived":false,"fork":false,"pushed_at":"2021-05-11T07:19:07.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T22:50:56.499Z","etag":null,"topics":["array-access","config","configuration","php","php-config","php-configuration","php8"],"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/teodoroleckie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["teodoroleckie"],"custom":["https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"]}},"created_at":"2021-04-24T08:00:55.000Z","updated_at":"2021-05-13T05:38:23.000Z","dependencies_parsed_at":"2022-08-24T10:41:01.154Z","dependency_job_id":null,"html_url":"https://github.com/teodoroleckie/config","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teodoroleckie%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teodoroleckie","download_url":"https://codeload.github.com/teodoroleckie/config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243349552,"owners_count":20276620,"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":["array-access","config","configuration","php","php-config","php-configuration","php8"],"created_at":"2024-09-24T20:12:45.932Z","updated_at":"2025-12-28T21:12:50.138Z","avatar_url":"https://github.com/teodoroleckie.png","language":"PHP","funding_links":["https://github.com/sponsors/teodoroleckie","https://www.paypal.com/donate?business=ZHYA2MTGA4884\u0026currency_code=USD"],"categories":[],"sub_categories":[],"readme":"# Config PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tleckie/config.svg?style=flat-square)](https://packagist.org/packages/tleckie/config)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/teodoroleckie/config/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/config/?branch=main)\n[![Total Downloads](https://img.shields.io/packagist/dt/tleckie/config.svg?style=flat-square)](https://packagist.org/packages/tleckie/config)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/teodoroleckie/config/badges/code-intelligence.svg?b=main)](https://scrutinizer-ci.com/code-intelligence)\n[![Build Status](https://scrutinizer-ci.com/g/teodoroleckie/config/badges/build.png?b=main)](https://scrutinizer-ci.com/g/teodoroleckie/config/build-status/main)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tleckie/config\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Tleckie\\Config\\Config;\n\n$data = [\n    'user' =\u003e [\n        'name' =\u003e 'John',\n        'age' =\u003e 38,\n        'friend' =\u003e [\n            'name' =\u003e 'Mario',\n            'age' =\u003e 25,\n            'friend' =\u003e [\n                'name' =\u003e 'Pedro',\n                'age' =\u003e 48,\n            ]\n        ]\n    ],\n    'size' =\u003e '800x900'\n];\n$config = new Config($data);\n\nvar_dump($config-\u003eget('user')-\u003eget('friend')-\u003eget('friend')-\u003eget('name'));\nvar_dump($config-\u003euser-\u003efriend-\u003efriend-\u003ename);\n\n$config-\u003emerge(['name' =\u003e 'Pedro']);\n$config-\u003emerge(new Config(['name' =\u003e 'Pedro']));\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteodoroleckie%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteodoroleckie%2Fconfig/lists"}