mittnett / config
Installs: 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/mittnett/config
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: 2025-09-26 03:27:38 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]