PHPackages                             vwo/vwo-openfeature-provider-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vwo/vwo-openfeature-provider-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vwo/vwo-openfeature-provider-php
================================

VWO Openfeature Provider for PHP

1.0.0(1y ago)01JavaScript

Since Feb 26Pushed 1y ago5 watchersCompare

[ Source](https://github.com/wingify/vwo-openfeature-provider-php)[ Packagist](https://packagist.org/packages/vwo/vwo-openfeature-provider-php)[ RSS](/packages/vwo-vwo-openfeature-provider-php/feed)WikiDiscussions master Synced 1mo ago

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

VWO OpenFeature Provider PHP
----------------------------

[](#vwo-openfeature-provider-php)

[![Latest Stable Version](https://camo.githubusercontent.com/38d6312634ab568a3d2d6d70d5ad34a7be6f9213cc10fae40719e38525e6813c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76776f2f76776f2d6f70656e666561747572652d70726f76696465722d7068702e737667)](https://packagist.org/packages/vwo/vwo-openfeature-provider-php)[![License](https://camo.githubusercontent.com/a549a7a30bacba7bfceebdc207a8e86c3f2c02995a2527640dca30048fd2b64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e737667)](http://www.apache.org/licenses/LICENSE-2.0)

### Requirements

[](#requirements)

> PHP &gt;= 7.4

### Installation

[](#installation)

Install the latest version with

```
composer require vwo/vwo-openfeature-provider-php
```

Basic Usage
-----------

[](#basic-usage)

```
use OpenFeature\OpenFeatureAPI;
use OpenFeature\implementation\flags\EvaluationContext;
use VWOOpenFeatureProvider\VWOProvider;
use vwo\VWO;

class OpenFeatureTest {
  public static function main() {
    // Initialize the VWO client options
    $vwoInitOptions = [
        'sdkKey' => 'your-sdk-key-here',     // Replace with your SDK Key
        'accountId' => 123456,               // Replace with your VWO Account ID
    ];

    // Initialize VWO Client
    $vwoClient = VWO::init($vwoInitOptions);
    if ($vwoClient === null) {
        echo "Failed to initialize VWO Client\n";
        return;
    }

    // Initialize the VWO provider
    $vwoProvider = new VWOProvider($vwoClient);

    // Set the provider using OpenFeature API
    $api = OpenFeatureAPI::getInstance();
    $api->setProvider($vwoProvider);

    // Call the test flags method to evaluate different flag types
    self::testFlags($api);
  }

  public static function testFlags(OpenFeatureAPI $api) {
    // Create custom variables for the context
    $customVariables = [
        'name' => 'Ashley'
    ];

    // Manually creating EvaluationContext with targetingKey and additional attributes
    $attributes = new OpenFeature\implementation\flags\Attributes([
        'key' => 'variable-key',
        'customVariables' => $customVariables, // Custom variables
    ]);

    $context = new EvaluationContext('userId1', $attributes);

    // Get the client from OpenFeature API
    $client = $api->getClient();

    // Test object flag
    $objectResult = $client->getObjectValue('f1',$customVariables, $context);
    echo "OBJECT result: " . json_encode($objectResult) . "\n";
  }
}

// Run the OpenFeatureTest script
OpenFeatureTest::main();
```

Changelog
---------

[](#changelog)

Refer [CHANGELOG.md](https://github.com/wingify/vwo-openfeature-provider-php/blob/master/CHANGELOG.md)

Setting up development environment
----------------------------------

[](#setting-up-development-environment)

```
composer run-script start
```

### Contributing

[](#contributing)

Please go through our [contributing guidelines](https://github.com/wingify/vwo-openfeature-provider-php/blob/master/CONTRIBUTING.md)

### Code of Conduct

[](#code-of-conduct)

[Code of Conduct](https://github.com/wingify/vwo-openfeature-provider-php/blob/master/CODE_OF_CONDUCT.md)

### License

[](#license)

[Apache License, Version 2.0](https://github.com/wingify/vwo-openfeature-provider-php/blob/master/LICENSE)

Copyright 2024-2025 Wingify Software Pvt. Ltd.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance46

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

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

Unknown

Total

1

Last Release

437d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45913410?v=4)[Katsuyo](/maintainers/vwo)[@vwo](https://github.com/vwo)

---

Top Contributors

[![sakshamg1304](https://avatars.githubusercontent.com/u/62280087?v=4)](https://github.com/sakshamg1304 "sakshamg1304 (1 commits)")

### Embed Badge

![Health badge](/badges/vwo-vwo-openfeature-provider-php/health.svg)

```
[![Health](https://phpackages.com/badges/vwo-vwo-openfeature-provider-php/health.svg)](https://phpackages.com/packages/vwo-vwo-openfeature-provider-php)
```

PHPackages © 2026

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