定制 flipt-io/flipt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flipt-io/flipt

最新稳定版本:v1.3.0

Composer 安装命令:

composer require flipt-io/flipt

包简介

Flipt Server SDK

README 文档

README

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.

Setting HTTP Headers

You can set custom HTTP headers for the client by using the withHeaders method.

$fliptClient = new FliptClient();
$fliptClient->withHeaders(['X-Custom-Header' => 'Custom-Value']);

Flipt V2 Environment Support

Flipt V2 introduces the concept of environments. This client supports evaluation of flags in a specific environment by using the X-Flipt-Environment header.

$fliptClient = new FliptClient();
$fliptClient->withHeaders(['X-Flipt-Environment' => 'production']);

Thanks ????

Thanks to legoheld for the initial implementation of this client.

统计信息

  • 总下载量: 26.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固