dvnc0/buoy

Small feature flag management library for PHP applications

Maintainers

Details

github.com/dvnc0/buoy

Source

Issues

Installs: 194

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dvnc0/buoy

v1.2.0 2024-12-28 07:11 UTC

This package is auto-updated.

Last update: 2025-09-28 08:48:49 UTC


README

A small PHP Feature Flag library.

composer require dvnc0/buoy

Usage

use Buoy;

Buoy::init();

Buoy::register('feature', function() {
	return true;
});

Buoy::can()->access('feature'); // true

This also includes a probability function:

Buoy::lotto(50); // true 50% of the time

Feature Validators

The register method can take a callable or a class that implements the Buoy\Feature_Validator interface.