https://github.com/utopia-php/config
Lite & fast micro PHP configuration management library that is **easy to use**.
https://github.com/utopia-php/config
hacktoberfest php
Last synced: 9 months ago
JSON representation
Lite & fast micro PHP configuration management library that is **easy to use**.
- Host: GitHub
- URL: https://github.com/utopia-php/config
- Owner: utopia-php
- License: mit
- Created: 2020-03-25T09:36:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T03:11:50.000Z (over 1 year ago)
- Last Synced: 2025-03-27T22:11:11.276Z (9 months ago)
- Topics: hacktoberfest, php
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 14
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Utopia Config
[](https://travis-ci.com/utopia-php/config)

[](https://appwrite.io/discord)
Utopia Config library is simple and lite library for managing application configuration. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).
Although this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free and can be used as standalone with any other PHP project or framework.
## Getting Started
Install using composer:
```bash
composer require utopia-php/config
```
```php
'value4']);
Config::getParam('key3'); // ['key4' => 'value4']
Config::getParam('key3.key4'); // value4
// Load config file (plain array)
Config::load('key5', __DIR__.'/demo.php');
Config::getParam('key5.key1', 'default'); // value1
```
## System Requirements
Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.
## Copyright and license
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)