Skip to content

flipt-io/flipt-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flipt PHP

Packagist Version

This directory contains the PHP source code for the Flipt server-side client.

Note

If you are on the https://github.com/flipt-io/flipt-php repository, this is a mirror of the source code. Please file issues and pull requests against the flipt-io/flipt-server-sdks repository.

Requirements

Documentation

API documentation is available at https://www.flipt.io/docs/reference/overview.

Installation

composer install flipt-io/flipt

Usage

In your PHP code you can import this client and use it as so:

<?php
use Flipt\Client\FliptClient;

$fliptClient = new FliptClient();

$result = $fliptClient->variant('flag1', ['fizz' => 'buzz'], 'entity');

There is a more detailed example in the tests directory.

Thanks 🎉

Thanks to legoheld for the initial implementation of this client.

About

Official PHP SDK for the Flipt API

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Languages