{"id":15509194,"url":"https://github.com/devuri/config","last_synced_at":"2026-01-03T07:56:20.677Z","repository":{"id":223410594,"uuid":"760180407","full_name":"devuri/config","owner":"devuri","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-19T20:40:56.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T22:10:37.720Z","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/devuri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-19T23:45:37.000Z","updated_at":"2024-07-19T20:40:57.000Z","dependencies_parsed_at":"2024-02-21T06:25:42.788Z","dependency_job_id":"0ab3836f-9eab-4ce1-b155-7d166ae5f623","html_url":"https://github.com/devuri/config","commit_stats":null,"previous_names":["devuri/config"],"tags_count":5,"template":false,"template_full_name":"devuri/dot-access","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devuri%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devuri","download_url":"https://codeload.github.com/devuri/config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006398,"owners_count":20382443,"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-10-02T09:41:38.424Z","updated_at":"2026-01-03T07:56:20.639Z","avatar_url":"https://github.com/devuri.png","language":"PHP","readme":"# SimpleConfig Package\n\nSimpleConfig is a lightweight PHP configuration management library designed to provide an easy and flexible way to handle configuration settings. It leverages `dflydev/dot-access-data` for convenient access to nested configuration values using dot notation.\n\n## Features\n\n- Easy loading and merging of configuration files.\n- Environment-specific configuration overrides.\n- Simple dot notation for accessing nested configuration values.\n- Optional caching mechanism to enhance performance.\n\n## Installation\n\nUse Composer to install SimpleConfig into your project:\n\n```bash\ncomposer require devuri/config\n```\n\n## Usage\n\n### Basic Usage\n\n```php\nuse Urisoft\\SimpleConfig;\n\n// Define your configuration path and allowed files\n$configPath = __DIR__ . '/config';\n$allowedFiles = ['app', 'database'];\n\n// Instantiate the SimpleConfig object\n$config = new SimpleConfig($configPath, $allowedFiles, 'production', 'path/to/configCache.php');\n\n// Access configuration values\n$appName = $config-\u003eget('app.name');\n$dbHost = $config-\u003eget('database.connections.mysql.host');\n```\n\n### Setting Configuration Values\n\n```php\n// Set a new configuration value\n$config-\u003eset('app.timezone', 'UTC');\n\n// Retrieve the newly set value\necho $config-\u003eget('app.timezone'); // Outputs: UTC\n```\n\n### Clearing Cache\n\n```php\n// Manually clear the configuration cache\n$config-\u003eclearCache();\n```\n\n## Contributing\n\nPlease submit pull requests or create issues for any features, fixes, or improvements.\n\n## License\n\nLicensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevuri%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevuri%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevuri%2Fconfig/lists"}