PHPackages                             pushinbr/pam-native-feature-flags - 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. pushinbr/pam-native-feature-flags

ActivePam-native-plugin

pushinbr/pam-native-feature-flags
=================================

Typed targeting, deterministic rollouts and offline feature-flag snapshots for PAM Native.

v0.1.1(yesterday)011↑2627.3%1BUSL-1.1PHPPHP ^8.4CI passing

Since Aug 1Pushed yesterdayCompare

[ Source](https://github.com/push-in/pam-native-feature-flags)[ Packagist](https://packagist.org/packages/pushinbr/pam-native-feature-flags)[ RSS](/packages/pushinbr-pam-native-feature-flags/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

PAM Native Feature Flags
========================

[](#pam-native-feature-flags)

Typed feature flags with deterministic targeting, percentage rollouts, local overrides, exposure events and offline native snapshots.

```
composer require pushinbr/pam-native-feature-flags
pam mobile prepare
```

```
$provider = new InMemoryFlagProvider([
    new FlagDefinition(
        'checkout.new',
        FlagValue::boolean(false),
        rules: [
            new TargetingRule('brazil-pro', [
                new Condition('country', ConditionOperator::Equals, 'BR'),
                new Condition('plan', ConditionOperator::OneOf, ['pro', 'enterprise']),
            ], FlagValue::boolean(true)),
        ],
        rollout: [new PercentageRollout(1_000, FlagValue::boolean(true))],
    ),
]);

$flags = new FeatureFlags(
    $provider,
    new EvaluationContext($user->id, ['country' => 'BR', 'plan' => 'pro']),
);

if ($flags->boolean('checkout.new')) {
    // New checkout.
}
```

Rollouts use SHA-256 over `flag-key + NUL + bucketing-id`, then map the first unsigned 32 bits into `0...9999`. Golden tests keep PHP, Kotlin and Swift assignments identical. Snapshot payloads are bounded to one MiB.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19325395?v=4)[David William balbino](/maintainers/DavidWilliamBalbino)[@DavidWilliamBalbino](https://github.com/DavidWilliamBalbino)

---

Top Contributors

[![DavidWilliamBalbino](https://avatars.githubusercontent.com/u/19325395?v=4)](https://github.com/DavidWilliamBalbino "DavidWilliamBalbino (5 commits)")

---

Tags

mobilepam-nativephp

### Embed Badge

![Health badge](/badges/pushinbr-pam-native-feature-flags/health.svg)

```
[![Health](https://phpackages.com/badges/pushinbr-pam-native-feature-flags/health.svg)](https://phpackages.com/packages/pushinbr-pam-native-feature-flags)
```

PHPackages © 2026

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