devcycle/devcycle-leaf-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

devcycle/devcycle-leaf-plugin

Composer 安装命令:

composer require devcycle/devcycle-leaf-plugin

包简介

DevCycle SDK Wrapper for the LeafPHP Framework

README 文档

README

This repository provides an extension for the Leaf PHP framework that integrates DevCycle, a comprehensive feature management platform. This extension simplifies the process of managing feature flags and configurations through DevCycle by wrapping the DevCycle API with a convenient PHP class.

Important

This extension has been created as part of a livestream series, is not actively maintained, and should not be used in production. Please check out the series on YouTube for more information.

Features

  • Easy integration with DevCycle using Leaf PHP framework.
  • Simple setup with minimal configuration.
  • Provides a ready-to-use DevCycle client for your Leaf PHP applications.

Installation

To install this extension, you can use Composer. Run the following command in your project directory:

composer require devcycle/devcycle-leaf-plugin

Usage

Configuration

First, ensure you have your DevCycle Server SDK key. You can obtain this from the DevCycle dashboard.

Example

Here is an example of how to use this extension in your Leaf PHP application:

require 'vendor/autoload.php';

use DevCycle\DevCycle;

// Initialize the DevCycle client with your Server SDK key
$server_sdk_key = 'YOUR_SERVER_SDK_KEY';
$devCycle = new DevCycle($server_sdk_key);

// Get the DevCycle client
$client = $devCycle->getDevCycleClient();

// Now you can use the $client to manage feature flags, configurations, etc.

API

DevCycle

The main class of this extension. It initializes the DevCycle client.

__construct($server_sdk_key)

  • $server_sdk_key: Your DevCycle Server SDK key.

Initializes the DevCycle client with the provided key.

getDevCycleClient()

Returns the initialized DevCycle client instance.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • DevCycle for providing a robust feature management platform.
  • Leaf PHP Framework for providing a simple and powerful PHP framework.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-04