PHPackages                             switchover/laravel-integration - 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. switchover/laravel-integration

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

switchover/laravel-integration
==============================

Laravel Integration for Switchover PHP SDK. Feature Toggle Management made easy.

0.5.4(5y ago)62784MITPHPPHP &gt;=7.2

Since Nov 19Pushed 5y agoCompare

[ Source](https://github.com/switchover-io/laravel-integration)[ Packagist](https://packagist.org/packages/switchover/laravel-integration)[ RSS](/packages/switchover-laravel-integration/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Switchover Laravel Integration
==============================

[](#switchover-laravel-integration)

[![CI](https://github.com/switchover-io/laravel-integration/workflows/CI/badge.svg)](https://github.com/switchover-io/laravel-integration/workflows/CI/badge.svg)[![codecov](https://camo.githubusercontent.com/6f7b149d88dcc5c68f7c6c85fc22fb978939a321d576126974fd42b090fb1ddc/68747470733a2f2f636f6465636f762e696f2f67682f7377697463686f7665722d696f2f6c61726176656c2d696e746567726174696f6e2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d49514e464f584a495758)](https://codecov.io/gh/switchover-io/laravel-integration)

Switchover
----------

[](#switchover)

Switchover is a Software-As-A-Service for managing feature toggles (aka switches, flags or feature flips) in your application. Use it for Continous Integration, Continous Delivery, A/B-Testing, Canary Releases, Experementing and everything else you can think of.

**Note:**Laravel integration of the Switchover PHP SDK.

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

Via composer:

```
composer require switchover/laravel-integration
```

### Configuration

[](#configuration)

The SDK-Key (can be found on the switchover environment page) can be specified as env variable in your `.env` file:

```
SWITCHOVER_SDK_KEY=
```

If you want to change the default cache time of 60 seconds you can also modify this via env variable:

```
SWITCHOVER_CACHE_TIME=10 # Warning: 0 will cache forever
```

### Basic Usage

[](#basic-usage)

The package exposes the `Switchover` facade to handle your feature toggles in the application.

Example:

```
class HomeController extends Controller
{

    public function index() {

        $userCtx = new Context([
            'email' => Auth::user()->email;
        ])

        $coolNewFeatures = Switchover::toggleValue('cool-feature', false, $userCtx);

        return //...
    }
}
```

Advanced Configuration
----------------------

[](#advanced-configuration)

You can also publish the underlying config file to get full control over the config e.g. for the Guzzle Http client:

```
php artisan vendor:publish --tag="switchover-config"
```

Now, you should have the `switchover.config` in your app config folder.

Documentation
-------------

[](#documentation)

Learn more on the official documentation: [Switchover Quickstart](https://support.switch-over.io/docs/quick-primer)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~9 days

Total

6

Last Release

1952d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72489521?v=4)[dah0f](/maintainers/dah0f)[@dah0f](https://github.com/dah0f)

---

Top Contributors

[![dah0f](https://avatars.githubusercontent.com/u/72489521?v=4)](https://github.com/dah0f "dah0f (14 commits)")

---

Tags

laravelfeature togglefeature flagfeature switchswitchoverswitch-overswitchover-iofeature flag managementfeature toggle management

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/switchover-laravel-integration/health.svg)

```
[![Health](https://phpackages.com/badges/switchover-laravel-integration/health.svg)](https://phpackages.com/packages/switchover-laravel-integration)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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