frozzare/features

用于功能标志接口/实现的简单包

v1.0.2 2018-04-25 06:39 UTC

This package is auto-updated.

Last update: 2024-08-26 01:39:59 UTC


README

用于功能标志接口/实现的简单包。

安装

$ composer require frozzare/features

示例

features([
    'log' => false
]);

...

features()->enable('log');

...

if (features()->enabled('log')) {
    ...
}

...

features()->disable('log');

许可证

MIT © Fredrik Forsmo