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-09-12 21:57:32 UTC
README
一个库,通过键值提供配置对象,同时支持不同的数据类型。
需求
- PHP 7.1
简单用法
<?php
$config = new \MittNett\Config\Config('somekey', new \MittNett\Config\Type\StringType());
$config->setValue('lol');
ORM集成
可选地,您也可以安装 doctrine/orm 以使用此库中提供的注解映射。
许可
MIT许可证,见[LICENSE.md]