phputil/flags-pdo
最新稳定版本:v0.1.4
Composer 安装命令:
composer require phputil/flags-pdo
包简介
A PDO-based storage for the phputil/flags framework
README 文档
README
A PDO-based storage for the phputil/flags feature flags framework
Currently supported drivers:
- sqlite
- mysql
Installation
Requires PHP 7.4+ and extension
pdo
composer require phputil/flags-pdo
⚠ Note: You may need to enable the PDO extension you want to use.
For instance, if you want to use sqlite:
- Find your
php.inifile:
php --ini
- Open your
php.iniand uncomment (or add) the following line:
extension=pdo_sqlite
Usage
require_once 'vendor/autoload.php'; use phputil\flags\pdo\PDOBasedStorage; $pdo = /* create you PDO instance here, e.g.: new PDO( 'sqlite:example.sqlite' ) */; $storage = new PDOBasedStorage( $pdo ); // Now use it with phputil\flags $flags = new phputil\flags\FlagManager( $storage ); ...
License
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-11