PHPackages                             configcat/openfeature-provider - 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. configcat/openfeature-provider

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

configcat/openfeature-provider
==============================

ConfigCat OpenFeature Provider for PHP.

v1.0.0(1y ago)238.2k↓57.2%[2 PRs](https://github.com/configcat/openfeature-php/pulls)1MITPHPPHP &gt;=8.1CI passing

Since Aug 8Pushed 4d ago5 watchersCompare

[ Source](https://github.com/configcat/openfeature-php)[ Packagist](https://packagist.org/packages/configcat/openfeature-provider)[ Docs](https://github.com/configcat/openfeature-php)[ RSS](/packages/configcat-openfeature-provider/feed)WikiDiscussions main Synced 2d ago

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

ConfigCat OpenFeature Provider for PHP
======================================

[](#configcat-openfeature-provider-for-php)

[![Build Status](https://github.com/configcat/openfeature-php/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/configcat/openfeature-php/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/70bcf3803509bb5199e10b8ccb74ba830274997c67c4b7c88912ed880b8de901/68747470733a2f2f706f7365722e707567782e6f72672f636f6e6669676361742f6f70656e666561747572652d70726f76696465722f76657273696f6e)](https://packagist.org/packages/configcat/openfeature-provider)[![Total Downloads](https://camo.githubusercontent.com/f44548b05b6b9e816048718fe5c90245b5db4e889a146b8fcbd99507a14e48d1/68747470733a2f2f706f7365722e707567782e6f72672f636f6e6669676361742f6f70656e666561747572652d70726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/configcat/openfeature-provider)

This repository contains an OpenFeature provider that allows [ConfigCat](https://configcat.com) to be used with the [OpenFeature PHP SDK](https://github.com/open-feature/php-sdk).

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1

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

[](#installation)

```
composer require configcat/openfeature-provider
```

Usage
-----

[](#usage)

The `ConfigCatProvider` constructor takes the SDK key and an optional `array` argument containing the additional configuration options for the [ConfigCat PHP SDK](https://github.com/configcat/php-sdk):

```
// Acquire an OpenFeature API instance.
$api = OpenFeatureAPI::getInstance();

// Build options for the ConfigCat SDK.
$options = [
  ClientOptions::LOG_LEVEL => LogLevel::WARNING,
  ClientOptions::CACHE_REFRESH_INTERVAL => 5,
  //...
];

// Configure the provider.
$api->setProvider(new ConfigCatProvider('', $options));

// Create a client.
$client = $api->getClient();

// Evaluate a feature flag.
$isMyAwesomeFeatureEnabled = $client->getBooleanValue('isMyAwesomeFeatureEnabled', false);
```

For more information about all the configuration options, see the [PHP SDK documentation](https://configcat.com/docs/sdk-reference/php/#creating-the-configcat-client).

Need help?
----------

[](#need-help)

Contributing
------------

[](#contributing)

Contributions are welcome. For more info please read the [Contribution Guideline](CONTRIBUTING.md).

About ConfigCat
---------------

[](#about-configcat)

ConfigCat is a feature flag and configuration management service that lets you separate releases from deployments. You can turn your features ON/OFF using [ConfigCat Dashboard](https://app.configcat.com) even after they are deployed. ConfigCat lets you target specific groups of users based on region, email or any other custom user attribute.

ConfigCat is a [hosted feature flag service](https://configcat.com). Manage feature toggles across frontend, backend, mobile, desktop apps. [Alternative to LaunchDarkly](https://configcat.com). Management app + feature flag SDKs.

- [Official ConfigCat SDKs for other platforms](https://github.com/configcat)
- [Documentation](https://configcat.com/docs)
- [Blog](https://configcat.com/blog)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance70

Regular maintenance activity

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1aafa26aa2864048c7a1d3f0c284fc6f438ef1bd05c7d87402562ad943fe4b29?d=identicon)[configcat](/maintainers/configcat)

---

Top Contributors

[![z4kn4fein](https://avatars.githubusercontent.com/u/13772020?v=4)](https://github.com/z4kn4fein "z4kn4fein (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![smottt](https://avatars.githubusercontent.com/u/619917?v=4)](https://github.com/smottt "smottt (1 commits)")

---

Tags

configcatfeature-flagfeature-flaggingfeatureflagsfeaturetogglesopenfeaturephpremote-configurationproviderfeature toggleopenfeaturefeature flagconfigcatuser targeting

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[configcat/configcat-client

ConfigCat is a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.

221.2M7](/packages/configcat-configcat-client)[flagception/flagception-bundle

Feature toggle bundle on steroids.

324.0M](/packages/flagception-flagception-bundle)[open-feature/sdk

PHP implementation of the OpenFeature SDK

42781.1k19](/packages/open-feature-sdk)

PHPackages © 2026

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