PHPackages                             switchover/php-sdk - 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/php-sdk

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

switchover/php-sdk
==================

Switchover PHP SDK. Feature Toggle Management made easy!

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

Since Nov 18Pushed 5y agoCompare

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

READMEChangelogDependencies (5)Versions (6)Used By (1)

Switchover SDK for PHP
======================

[](#switchover-sdk-for-php)

[![CI](https://github.com/switchover-io/php-sdk/workflows/CI/badge.svg)](https://github.com/switchover-io/php-sdk/workflows/CI/badge.svg)[![codecov](https://camo.githubusercontent.com/04de12a688fed254e751a103fb9638a11527f644f738493ee1b882d530f1cd1b/68747470733a2f2f636f6465636f762e696f2f67682f7377697463686f7665722d696f2f7068702d73646b2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d656f536745666149354a)](https://codecov.io/gh/switchover-io/php-sdk)[![CodeFactor](https://camo.githubusercontent.com/5f0f599ad2bc362fd1ec99090dd78b6eacfc0a6cf980edf96f804d29201fddeb/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f7377697463686f7665722d696f2f7068702d73646b2f6261646765)](https://www.codefactor.io/repository/github/switchover-io/php-sdk)

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:**Use this SDK for PHP Projects

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

[](#getting-started)

### Install

[](#install)

Via composer:

```
composer require switchover/php-sdk
```

### For Laravel Users

[](#for-laravel-users)

Use our Laravel Package to get up and running quickly with Switchover in your Laravel App:

### Initialize client

[](#initialize-client)

You will find your SDK Key on the environment page. Copy it and use it to initialize the client:

Basic usage:

```
// create a client, per default the client will cache the toggles 60 seconds
$client = new SwitchoverClient('
