PHPackages                             niborb/php-feature-toggle - 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. niborb/php-feature-toggle

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

niborb/php-feature-toggle
=========================

A PHP feature toggle library

1.0.1(10y ago)5530MITPHPPHP &gt;=5.5CI passing

Since Jul 5Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/niborb/php-feature-toggle)[ Packagist](https://packagist.org/packages/niborb/php-feature-toggle)[ RSS](/packages/niborb-php-feature-toggle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (7)Used By (0)

PHP feature toggle library
--------------------------

[](#php-feature-toggle-library)

A small, dependency-light feature toggle library for PHP 8.2+. Features can be toggled on/off and optionally gated behind a Symfony ExpressionLanguage expression evaluated against a runtime context.

### Requirements

[](#requirements)

- PHP `^8.2`
- `symfony/expression-language` `^6.4 || ^7.0`

### Installation

[](#installation)

```
composer require niborb/php-feature-toggle
```

See also [packagist.org/packages/niborb/php-feature-toggle](https://packagist.org/packages/niborb/php-feature-toggle).

### Quick start

[](#quick-start)

```
