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 3w 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

Maintenance28

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

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://avatars.githubusercontent.com/u/16067502?v=4)[DevCycle](/maintainers/DevCycle)[@devcycle](https://github.com/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/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M832](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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