https://github.com/assada/configurator
:card_index: Simple configuration container
https://github.com/assada/configurator
config containers ini json parser php-library php7 xml yaml
Last synced: 5 months ago
JSON representation
:card_index: Simple configuration container
- Host: GitHub
- URL: https://github.com/assada/configurator
- Owner: assada
- License: gpl-3.0
- Archived: true
- Created: 2017-01-28T14:07:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T16:50:57.000Z (over 8 years ago)
- Last Synced: 2025-01-22T18:12:51.220Z (5 months ago)
- Topics: config, containers, ini, json, parser, php-library, php7, xml, yaml
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[]()
[](https://php.net/) [](https://www.codacy.com/app/Assada/configurator?utm_source=github.com&utm_medium=referral&utm_content=Assada/configurator&utm_campaign=Badge_Grade) [](https://packagist.org/packages/assada/configurator) []() [](https://gratipay.com/configurator/)
[](https://github.com/Assada/configurator)
Installation
---Via Composer
```shell
composer require assada/configurator
```Requirements
---PHP: >= **7.0**
symfony/yaml: >= 3.2
Instead of symfony/yaml suggest install PECL yaml extension.
Usage
---```php
$config = new Config(['./configs/test.json', './configs/test2.json']);
$config->add('./test3.json');
$config->set('test.set', 'newData');file_put_contents('export.json', $config->dump('json'));
var_dump($config->all());
```License
--Configurator is released under the GPL3.0 Licence. See the bundled LICENSE file for details.
Author
--Alex Ilyenko (@Assada)