PHPackages                             oneduo/laravel-pennant-launchdarkly - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oneduo/laravel-pennant-launchdarkly

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oneduo/laravel-pennant-launchdarkly
===================================

A LaunchDarkly driver for Laravel Pennant

v0.1.2(1y ago)81.5k1[4 PRs](https://github.com/oneduo/laravel-pennant-launchdarkly/pulls)MITPHPPHP ^8.1CI passing

Since Mar 3Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/oneduo/laravel-pennant-launchdarkly)[ Packagist](https://packagist.org/packages/oneduo/laravel-pennant-launchdarkly)[ Docs](https://github.com/oneduo/laravel-pennant-launchdarkly)[ RSS](/packages/oneduo-laravel-pennant-launchdarkly/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (8)Used By (0)

LaunchDarkly driver for Laravel Pennant
=======================================

[](#launchdarkly-driver-for-laravel-pennant)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec72b690114fbd6836bc67addde8851a6c45bb1ceec10860f045993b0c74d287/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e6564756f2f6c61726176656c2d70656e6e616e742d6c61756e63686461726b6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oneduo/laravel-pennant-launchdarkly)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d1161a0b7e7a0cc3e96235e9a342233b507602f278d7292c88aced6a59975e7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6e6564756f2f6c61726176656c2d70656e6e616e742d6c61756e63686461726b6c792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/oneduo/laravel-pennant-launchdarkly/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9a6f6d09871b74f362aeecd5b618c71b9e417b90c887a0ed0201969e21cdc91b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6e6564756f2f6c61726176656c2d70656e6e616e742d6c61756e63686461726b6c792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/oneduo/laravel-pennant-launchdarkly/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c61526bdaf7dd0af62819c3a0781c666737cecf31a0e93d6d4d173518397ac98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6e6564756f2f6c61726176656c2d70656e6e616e742d6c61756e63686461726b6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oneduo/laravel-pennant-launchdarkly)

A Laravel Pennant driver for LaunchDarkly.

- [Installation](#installation)
- [Usage](#usage)
    - [Related documentation:](#related-documentation-)
- [Troubleshooting](#troubleshooting)
    - [\[E1\] Scope must be an instance of LDUser](#-e1--scope-must-be-an-instance-of-lduser)
    - [\[E2\] Not implemented, Launchdarkly driver does not support this method](#-e2--not-implemented--launchdarkly-driver-does-not-support-this-method)
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Security Vulnerabilities](#security-vulnerabilities)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require oneduo/laravel-pennant-launchdarkly
```

Usage
-----

[](#usage)

You may use the driver in your existing Laravel Pennant configuration file, by setting your store's driver to `LaunchDarklyDriver::class`.

You should provide your SDK key in your store's configuration.

You may add any LaucnhDarkly cleint specific configuration options to the store's configuration.

A typical configuration might look like this:

```
// config/pennant.php
