PHPackages                             open-feature/split-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. open-feature/split-provider

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

open-feature/split-provider
===========================

The Split provider package for OpenFeature

1.0.0(1y ago)08.9k1[2 PRs](https://github.com/open-feature-php/split-provider/pulls)Apache-2.0PHPPHP ^8

Since Nov 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/open-feature-php/split-provider)[ Packagist](https://packagist.org/packages/open-feature/split-provider)[ RSS](/packages/open-feature-split-provider/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (23)Versions (10)Used By (0)

OpenFeature SplitIO Provider for PHP
====================================

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

[![a](https://camo.githubusercontent.com/17e144567dd661fcbef070f93dddc42e62807a539ee3165e47d0ddc507bf15f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2d253430636e63662532466f70656e666561747572652d627269676874677265656e3f7374796c653d666c6174266c6f676f3d736c61636b)](https://cloud-native.slack.com/archives/C0344AANLA1)[![Latest Stable Version](https://camo.githubusercontent.com/5c09da5a0c85fe0539c0f6ac472075a433d79813d5c829df496ad3e79f259631/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d666561747572652f73706c69742d70726f76696465722f76)](https://packagist.org/packages/open-feature/split-provider)[![Total Downloads](https://camo.githubusercontent.com/44df50a98ebb17603524bf792ca9955430a960d1b4494b9906bb60224a60900d/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d666561747572652f73706c69742d70726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/open-feature/split-provider)[![PHP 8.0+](https://camo.githubusercontent.com/36d788d0f2d62c47ef64bc13d6f62e5921218d50977830b654730882e0d0f1cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e302d626c75652e737667)](https://camo.githubusercontent.com/36d788d0f2d62c47ef64bc13d6f62e5921218d50977830b654730882e0d0f1cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e302d626c75652e737667)[![License](https://camo.githubusercontent.com/39998489845ea0cbb68c5c85477539796268f6991bd8ae1cb7981a5bc4403734/687474703a2f2f706f7365722e707567782e6f72672f6f70656e2d666561747572652f73706c69742d70726f76696465722f6c6963656e7365)](https://packagist.org/packages/open-feature/split-provider)

Overview
--------

[](#overview)

Split is a feature delivery platform that powers feature flag management, software experimentation, and continuous delivery. This repository and package provides the client side code for interacting with it via the OpenFeature PHP SDK.

This package also builds on various PSRs (PHP Standards Recommendations) such as the Logger interfaces (PSR-3) and the Basic and Extended Coding Standards (PSR-1 and PSR-12).

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

[](#installation)

```
composer require open-feature/split-provider
```

Usage
-----

[](#usage)

The `SplitProvider` client constructor takes a single optional argument with 3 fields, their default values correspond to the default arguments supplied to the flagd server:

```
$splitConfig = [
    'cache' => [
      'adapter' => 'predis',
      'parameters' => [
        'scheme' => 'tcp',
        'host' => getenv('REDIS_HOST'),
        'port' => getenv('REDIS_PORT'),
        'timeout' => 881,
      ],
      'options' => [
        'prefix' => '',
      ],
    ],
];

$splitApiKey = getenv('SPLIT_API_KEY');

$provider = new SplitProvider($splitApiKey, $splitConfig);
```

For more information on the configuration options, please see the Split PHP SDK documentation on [Configuration](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK#configuration).

Resolving values requires the use of the `EvaluationContext, where you can provide the `targetingKey` for the evaluation (the identifier which represents the user/account/etc.)

```
$client = $api->getClient('split-example', '1.0.0');

$featureEnabled = $client->getBooleanDetails('dev.openfeature.example_flag', false, new EvaluationContext('user-id'), null);

if ($featureEnabled) {
  // do new logic here
} else {
  // do old logic here
}
```

You can provide more elaborate attributes to resolve values, but the values must conform to the requirements of the Split SDK. Information on what attributes are allowed can be found in the [Attributes section](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK#attribute-syntax) of the PHP SDK documentation.

```
$client = $api->getClient('split-example', '1.0.0');

$featureEnabled = $client->getBooleanDetails('dev.openfeature.example_flag', false, new EvaluationContext('user-id', [
  'plan_type' => 'growth',
  'registered_date' => (new DateTime('now', new DateTimeZone('UTC')))->getTimestamp(),
  'deal_size' => 10000,
  'paying_customer' => True,
  'permissions' => ['gold','silver','platinum'],
]), null);

if ($featureEnabled) {
  // do new logic here
} else {
  // do old logic here
}
```

Development
-----------

[](#development)

### PHP Versioning

[](#php-versioning)

This library targets PHP version 8.0 and newer. As long as you have any compatible version of PHP on your system you should be able to utilize the OpenFeature SDK.

This package also has a `.tool-versions` file for use with PHP version managers like `asdf`.

### Installation and Dependencies

[](#installation-and-dependencies)

Install dependencies with `composer install`. `composer install` will update the `composer.lock` with the most recent compatible versions.

We value having as few runtime dependencies as possible. The addition of any dependencies requires careful consideration and review.

### Testing

[](#testing)

Run tests with `composer run test`.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~93 days

Recently: every ~142 days

Total

8

Last Release

621d ago

Major Versions

0.8.0 → 1.0.02024-09-04

PHP version history (2 changes)0.1.0PHP ^7.4 || ^8

0.3.0PHP ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/37b811aae08f6063ce4a6c9111849a2c8c5400b58718072c224c9eb8c46e5f17?d=identicon)[0xc](/maintainers/0xc)

---

Top Contributors

[![tcarrio](https://avatars.githubusercontent.com/u/8659099?v=4)](https://github.com/tcarrio "tcarrio (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

providersplitfeatureflagsfeatureflaggingopenfeaturesplitio

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/open-feature-split-provider/health.svg)

```
[![Health](https://phpackages.com/badges/open-feature-split-provider/health.svg)](https://phpackages.com/packages/open-feature-split-provider)
```

###  Alternatives

[open-feature/sdk

PHP implementation of the OpenFeature SDK

39514.9k15](/packages/open-feature-sdk)[vanderlee/php-sentence

Simple text sentence splitting and counting. Supports at least english, german and dutch, possibly more.

84555.7k6](/packages/vanderlee-php-sentence)[jakezatecky/array_group_by

A function that groups/splits an array by the values of a given key or keys.

100188.7k2](/packages/jakezatecky-array-group-by)[daftspunk/laravel-config-writer

Laravel provider to be able to rewrite configuration

17548.8k1](/packages/daftspunk-laravel-config-writer)[mmo/faker-images

Different images provider for Faker

59370.3k6](/packages/mmo-faker-images)[bluemmb/faker-picsum-photos-provider

picsum.photos provider for Faker

31225.7k1](/packages/bluemmb-faker-picsum-photos-provider)

PHPackages © 2026

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