PHPackages                             phputil/flags-pdo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. phputil/flags-pdo

ActiveLibrary[Framework](/categories/framework)

phputil/flags-pdo
=================

A PDO-based storage for the phputil/flags framework

v0.1.4(1y ago)07MITPHPPHP ^7.4 || ^8.0

Since May 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thiagodp/phputil-flags-pdo)[ Packagist](https://packagist.org/packages/phputil/flags-pdo)[ RSS](/packages/phputil-flags-pdo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

phputil/flags-pdo
=================

[](#phputilflags-pdo)

[![Version](https://camo.githubusercontent.com/b4429130b32ed5f09416c44120815164ce761064b86546d4a2fea8703e8b5f80/68747470733a2f2f706f7365722e707567782e6f72672f7068707574696c2f666c6167732d70646f2f763f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phputil/flags-pdo)[![Build](https://github.com/thiagodp/phputil-flags-pdo/actions/workflows/ci.yml/badge.svg?style=flat)](https://github.com/thiagodp/phputil-flags-pdo/actions/workflows/ci.yml/badge.svg?style=flat)[![License](https://camo.githubusercontent.com/8c236d6f093775740687329aa7c4b7c0807cfa64322ae591ac4c52dac99d3156/68747470733a2f2f706f7365722e707567782e6f72672f7068707574696c2f666c6167732d70646f2f6c6963656e73653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phputil/flags-pdo)[![PHP](https://camo.githubusercontent.com/6d1513c02b7582c9aaa5f83ad6266e5b9eefd4755bcb5cfedf809b608adfcf48/687474703a2f2f706f7365722e707567782e6f72672f7068707574696c2f666c6167732d70646f2f726571756972652f706870)](https://packagist.org/packages/phputil/flags-pdo)

> A PDO-based storage for the [phputil/flags](https://github.com/thiagodp/phputil-flags) feature flags framework

Currently supported drivers:

- sqlite
- mysql

Installation
------------

[](#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`:

1. Find your `php.ini` file:

`php --ini`

2. Open your `php.ini` and uncomment (or add) the following line:

`extension=pdo_sqlite`

Usage
-----

[](#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
-------

[](#license)

[MIT](/LICENSE) © [Thiago Delgado Pinto](https://github.com/thiagodp)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Total

5

Last Release

546d ago

PHP version history (2 changes)v0.1.0PHP ^7.4.0

v0.1.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/154324d722a6ee9c252a0338329781084a97af2d0ea9faaf39176df5a689a2ec?d=identicon)[thiagodp](/maintainers/thiagodp)

---

Top Contributors

[![thiagodp](https://avatars.githubusercontent.com/u/2997844?v=4)](https://github.com/thiagodp "thiagodp (13 commits)")

---

Tags

featureflagframeworklibrarypdophpstoragetogglephpframeworklibrarypdofeaturestorageflagtoggle

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phputil-flags-pdo/health.svg)

```
[![Health](https://phpackages.com/badges/phputil-flags-pdo/health.svg)](https://phpackages.com/packages/phputil-flags-pdo)
```

###  Alternatives

[digitalstars/simplevk

Powerful PHP library/framework for VK API bots, supporting LongPoll &amp; Callback &amp; OAuth

883.9k3](/packages/digitalstars-simplevk)[marwanalsoltany/mighty

The last validation library you will ever need!

591.3k](/packages/marwanalsoltany-mighty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
