PHPackages                             praveenmenezes/laravel-flagsmith - 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. praveenmenezes/laravel-flagsmith

ActiveLibrary

praveenmenezes/laravel-flagsmith
================================

Flagsmith Wrapper for Laravel 6+

1.0.7(3y ago)015[1 PRs](https://github.com/praveenmenezes/laravel-flagsmith/pulls)MITPHPPHP &gt;=7.4

Since Dec 3Pushed 3y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (4)Versions (10)Used By (0)

Flagsmith library for Laravel 6+
================================

[](#flagsmith-library-for-laravel-6)

Laravel Flagsmith is a lightweight Flagsmith library which works on **Laravel 6+** and **PHP 7.4+**

Getting started
---------------

[](#getting-started)

- Signup on [app.flagsmith.com](https://app.flagsmith.com) and create an app
- On the left sidebar, navigate to your settings page and open Keys tab
- Generate a new Server-side Environment Keys
- Copy the key and assign it to *FLAGSMITH\_API\_KEY=* in your project .env or docker env

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

[](#installation)

In your Laravel Project, perform the following steps

- Install the library using composer

`composer require praveenmenezes/laravel-flagsmith`

- (Optional) Register Kafka Service Provider in `config/app.php`

    `Note: This will be already loaded from composer.json`

```
'providers' => [
    ...,
    /**
    * Third party Service Providers
    */
   Menezes\LaravelFlagsmith\Providers\FlagsmithServiceProvider::class,
],

'alias' => [
    ...,
    // Third party aliases
    'Flagsmith' => Menezes\LaravelFlagsmith\Services\Flagsmith::class,
]

```

- Start using Flagsmith class as shown in below [examples](examples/laravel-6/README.md)

```
