PHPackages                             devcycle/devcycle-leaf-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. devcycle/devcycle-leaf-plugin

AbandonedArchivedLibrary[Framework](/categories/framework)

devcycle/devcycle-leaf-plugin
=============================

DevCycle SDK Wrapper for the LeafPHP Framework

11PHP

Since Sep 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/DevCycleHQ-Sandbox/devcycle-leaf-plugin)[ Packagist](https://packagist.org/packages/devcycle/devcycle-leaf-plugin)[ RSS](/packages/devcycle-devcycle-leaf-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DevCycle Leaf PHP Extension
===========================

[](#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
--------

[](#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
------------

[](#installation)

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

```
composer require devcycle/devcycle-leaf-plugin
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

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

### Example

[](#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
---

[](#api)

### `DevCycle`

[](#devcycle)

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

#### `__construct($server_sdk_key)`

[](#__constructserver_sdk_key)

- `$server_sdk_key`: Your DevCycle Server SDK key.

Initializes the DevCycle client with the provided key.

#### `getDevCycleClient()`

[](#getdevcycleclient)

Returns the initialized DevCycle client instance.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

Acknowledgements
----------------

[](#acknowledgements)

- [DevCycle](https://devcycle.com/) for providing a robust feature management platform.
- [Leaf PHP Framework](https://leafphp.dev/) for providing a simple and powerful PHP framework.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c7d183cd594eae9da21f15181ad2a7051706bef352c3ead70e198dadb68510e?d=identicon)[DevCycle](/maintainers/DevCycle)

---

Top Contributors

[![andrewdmaclean](https://avatars.githubusercontent.com/u/26526271?v=4)](https://github.com/andrewdmaclean "andrewdmaclean (6 commits)")[![iAmWillShepherd](https://avatars.githubusercontent.com/u/1715082?v=4)](https://github.com/iAmWillShepherd "iAmWillShepherd (5 commits)")

### Embed Badge

![Health badge](/badges/devcycle-devcycle-leaf-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/devcycle-devcycle-leaf-plugin/health.svg)](https://phpackages.com/packages/devcycle-devcycle-leaf-plugin)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
