PHPackages                             vsvp21/features-php-sdk - 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. [API Development](/categories/api)
4. /
5. vsvp21/features-php-sdk

ActiveLibrary[API Development](/categories/api)

vsvp21/features-php-sdk
=======================

3.2.0(2y ago)02.5kMITPHPPHP ^8.1

Since Mar 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vsvp21/features-php-sdk)[ Packagist](https://packagist.org/packages/vsvp21/features-php-sdk)[ RSS](/packages/vsvp21-features-php-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (5)Versions (6)Used By (0)

Feature Flags PHP SDK for Choco Internal Usage
==============================================

[](#feature-flags-php-sdk-for-choco-internal-usage)

Installation:

```
composer require vsvp21/features-php-sdk
```

Publish config:

```
php artisan vendor:publish --provider="Feature\ServiceProvider"
```

Add service provider to app.php config:

```
// config/app.php

// other providers
\Feature\ServiceProvider::class,
// other providers
```

Usage:

```
// model class
use Feature\HasFeaturesTrait;

// your targeting key field identifier
protected function targetingKeyField(): string
{
    return 'your_targeting_key';
}

// your list of features
protected function featureFlags(): array
{
    return [
        'feature1',
        'feature2',
    ];
}
```

Usage without model:

```
use Feature\Interfaces\ClientInterface::class;

$featureEnabled = app(ClientInterface::class)->getFeature('your_feature')->value;

if ($featureEnabled) {
    // some code
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

5

Last Release

829d ago

Major Versions

1.0.0 → 2.0.02024-03-10

2.0.0 → 3.0.02024-03-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29223155?v=4)[Yuriy Kim](/maintainers/vsvp21)[@vsvp21](https://github.com/vsvp21)

###  Code Quality

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vsvp21-features-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/vsvp21-features-php-sdk/health.svg)](https://phpackages.com/packages/vsvp21-features-php-sdk)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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