Git Product home page Git Product logo

devcycle-leaf-plugin's Introduction

DevCycle Leaf PHP Extension

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 your-namespace/devcycle-leaf-extension

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.

devcycle-leaf-plugin's People

Contributors

iamwillshepherd avatar andrewdmaclean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.