{"id":21842869,"url":"https://github.com/pandaplatform/config","last_synced_at":"2025-04-14T12:05:08.191Z","repository":{"id":57035327,"uuid":"95087283","full_name":"PandaPlatform/config","owner":"PandaPlatform","description":"[READ-ONLY] Subtree split of the Panda Config Package","archived":false,"fork":false,"pushed_at":"2024-11-25T16:04:23.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"2.1","last_synced_at":"2025-04-14T12:05:03.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/PandaPlatform/framework","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/PandaPlatform.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-06-22T07:29:35.000Z","updated_at":"2017-06-22T10:58:09.000Z","dependencies_parsed_at":"2022-08-23T20:50:46.841Z","dependency_job_id":null,"html_url":"https://github.com/PandaPlatform/config","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/PandaPlatform%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaPlatform%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaPlatform%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PandaPlatform%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PandaPlatform","download_url":"https://codeload.github.com/PandaPlatform/config/tar.gz/refs/heads/2.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877983,"owners_count":21176243,"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-11-27T22:13:34.116Z","updated_at":"2025-04-14T12:05:08.166Z","avatar_url":"https://github.com/PandaPlatform.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Configuration\n\n\u003e **[READ-ONLY]** Subtree split of the Panda Config Package\n\n- [Introduction](#introduction)\n- [Shared Configuration](#shared-configuration)\n- [Configuration parsers](#configuration-parsers)\n- [Accessing Configuration Values](#accessing-configuration-values)\n\n## Introduction\n\nAll of the configuration files for the Panda framework are stored in the `config` directory. The main configuration file is named `config-default` followed by the extension according to the configuration type.\n\nThe main configuration file should include all the necessary config values for all the different services or features of your application.\n\n## Shared Configuration\n\nThe configuration values are being loaded in a common/shared configuration that is accessible during runtime at any time without the access to the configuration object.\n\nShared configuration is a sub-set of the shared registry and it can keep its values during runtime across different objects.\n\n## Configuration parsers\n\nThe default configuration parser for the configuration files is the `\\Panda\\Config\\Parsers\\JsonParser` which support json files.\n\nThe job of the parsers (from the `config` package) is to parse the configuration files and return an array of their values.\n\n## Accessing Configuration Values\n\nYou may easily access your configuration values using the `SharedConfiguration` object.\nThe configuration values may be accessed using \"dot\" syntax, which is being translated in encapsulated groups of values.\nA default value may also be specified and will be returned if the configuration option does not exist:\n\n```php\nuse \\Panda\\Config\\SharedConfiguration;\n\n$config = new SharedConfiguration();\n$value = $config-\u003eget('routes.base_dir', $default = null);\n```\n\nYou can also set configuration values at runtime:\n\n```php\nuse \\Panda\\Config\\SharedConfiguration;\n\n$config = new SharedConfiguration();\n$config-\u003eset('logger.enabled', false);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaplatform%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandaplatform%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaplatform%2Fconfig/lists"}