Skip to content

dvnc0/buoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buoy

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.

About

Small PHP feature flag manager

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages