PHPackages                             elsayed85/nova-switcher - 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. elsayed85/nova-switcher

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

elsayed85/nova-switcher
=======================

A Laravel Nova switcher field.

0707Vue

Since Jan 14Pushed 3y agoCompare

[ Source](https://github.com/elsayed85/nova-switcher)[ Packagist](https://packagist.org/packages/elsayed85/nova-switcher)[ RSS](/packages/elsayed85-nova-switcher/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Nova Switcher Field
===========================

[](#laravel-nova-switcher-field)

Replace default Boolean with switcher.
Work on Index/Detail view with xhr, on Form like checkbox.

[![](https://user-images.githubusercontent.com/839633/209843810-d656e6db-025f-4221-9c6c-9b238227706f.gif)](https://user-images.githubusercontent.com/839633/209843810-d656e6db-025f-4221-9c6c-9b238227706f.gif)

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

[](#installation)

```
composer require trin4ik/nova-switcher
```

Usage
-----

[](#usage)

```
use Trin4ik\NovaSwitcher\NovaSwitcher;
```

```
NovaSwitcher::make('Active')
    ->trueLabel('On')
    ->falseLabel('Off');
```

or

```
NovaSwitcher::make('Active')
    ->withLabels(true: 'On', false: 'Off');
```

Also, you can use reverse value (if switcher checked, value is false and vice versa)

```
NovaSwitcher::make('Active')
    ->reverse();
```

Thanks
------

[](#thanks)

to [David Piesse](https://github.com/davidpiesse), based on

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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://www.gravatar.com/avatar/9f6465ef2e90074d5a323bf893bb1ab9a7b5af7bf61d1001f85a8448d8fb257d?d=identicon)[elsayed851999](/maintainers/elsayed851999)

---

Top Contributors

[![elsayed85](https://avatars.githubusercontent.com/u/41492621?v=4)](https://github.com/elsayed85 "elsayed85 (3 commits)")[![trin4ik](https://avatars.githubusercontent.com/u/839633?v=4)](https://github.com/trin4ik "trin4ik (3 commits)")

### Embed Badge

![Health badge](/badges/elsayed85-nova-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/elsayed85-nova-switcher/health.svg)](https://phpackages.com/packages/elsayed85-nova-switcher)
```

PHPackages © 2026

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