mittnett / config
v1.0.0
2017-11-18 21:40 UTC
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.8
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.8.5
- phpunit/phpunit: ^6.4
Suggests
- doctrine/orm: Allow to use the entities provided in the package.
This package is not auto-updated.
Last update: 2024-11-07 22:36:04 UTC
README
A library to provide a configuration objects by key values, it also supports different data types.
Requirements
- PHP 7.1
Simple usage
<?php
$config = new \MittNett\Config\Config('somekey', new \MittNett\Config\Type\StringType());
$config->setValue('lol');
ORM Integrations
Optionally, you can also install doctrine/orm to use the provided annotation mappings in this library.
License
MIT License, see [LICENSE.md]