{"id":15837711,"url":"https://github.com/amitminer/libconfig-php","last_synced_at":"2025-10-23T19:24:12.090Z","repository":{"id":193295517,"uuid":"657936785","full_name":"Amitminer/LibConfig-PHP","owner":"Amitminer","description":"Help you to manage with Config Yaml :)","archived":false,"fork":false,"pushed_at":"2023-11-12T05:32:10.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-07-06T18:18:51.065Z","etag":null,"topics":["library","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amitminer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-24T09:05:54.000Z","updated_at":"2023-09-10T09:01:47.000Z","dependencies_parsed_at":"2023-11-12T06:23:56.673Z","dependency_job_id":"bdf85454-492d-4f10-83d1-cec692899cd1","html_url":"https://github.com/Amitminer/LibConfig-PHP","commit_stats":null,"previous_names":["amitminer/libconfig-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Amitminer/LibConfig-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amitminer%2FLibConfig-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amitminer%2FLibConfig-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amitminer%2FLibConfig-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amitminer%2FLibConfig-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amitminer","download_url":"https://codeload.github.com/Amitminer/LibConfig-PHP/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amitminer%2FLibConfig-PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280677367,"owners_count":26371918,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["library","php"],"created_at":"2024-10-05T15:41:33.281Z","updated_at":"2025-10-23T19:24:12.060Z","avatar_url":"https://github.com/Amitminer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n# LibConfig-PHP\n\nLibConfig-PHP is a PHP library that simplifies the management of YAML configuration files.\n\n## Installation\n\nYou can install this library using [Composer](https://getcomposer.org/):\n\n```bash\ncomposer require amitxd/libconfig:^1.0\n```\n\n## Usage\n\n### Initializing LibConfig\n\n```php\nuse AmitxD\\LibConfig\\LibConfig;\n\n// Initialize LibConfig with the path to your YAML configuration file\n$config = new LibConfig('path/to/your/config.yaml');\n```\n\n### Getting Configuration Values\n\n```php\n// Get a configuration value by key, providing a default value if not found\n$value = $config-\u003eget('key', 'default_value');\n```\n\n### Setting Configuration Values\n\n```php\n// Set a configuration value by key\n$config-\u003eset('key', 'new_value');\n\n// Save the changes back to the YAML file\n$config-\u003esave();\n```\n\n## Example\n\nHere's a simple example of how to use LibConfig:\n\n```php\nuse AmitxD\\LibConfig\\LibConfig;\n\n// Initialize LibConfig with the path to your YAML configuration file\n$config = new LibConfig('config.yaml');\n\n// Get a configuration value\n$siteTitle = $config-\u003eget('site.title', 'My Website');\n\n// Output the site title\necho \"Site Title: $siteTitle\\n\";\n\n// Set a new configuration value\n$config-\u003eset('site.title', 'Updated Website Title');\n\n// Save the changes back to the YAML file\n$config-\u003esave();\n```\n\n## Requirements\n\n- PHP ^8.0\n- Symfony Yaml Component ^6.3\n\n## License\n\nThis library is open-source software licensed under the [MIT License](LICENSE).\n\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitminer%2Flibconfig-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitminer%2Flibconfig-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitminer%2Flibconfig-php/lists"}