PHPackages                             mdsatu/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. [Database &amp; ORM](/categories/database)
4. /
5. mdsatu/switcher

ActiveLibrary[Database &amp; ORM](/categories/database)

mdsatu/switcher
===============

Laravel database table status switcher

1.5(2y ago)01.2k↓91.1%MITBladePHP &gt;=5.4.0

Since Sep 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mdsatu/switcher)[ Packagist](https://packagist.org/packages/mdsatu/switcher)[ Docs](https://github.com/mdsatu/switcher)[ RSS](/packages/mdsatu-switcher/feed)WikiDiscussions master Synced today

READMEChangelog (6)DependenciesVersions (7)Used By (0)

Switcher
========

[](#switcher)

Switcher is used to easily switch database column status value of a specific table.

[GitHub license](https://github.com/mdsatu/switcher/blob/master/LICENSE), [GitHub issues](https://github.com/mdsatu/switcher/laravel-meta-manager/issues)

Requirements
------------

[](#requirements)

- PHP 5.4 or above
- Laravel 5.5 or above

Steps:
------

[](#steps)

- [Install](#install)
- [Configuration](#configuration)
- [Usage](#usage)
- [Example](#example)
- [Maintainers](#maintainers)
- [License](#license)

### Install

[](#install)

**Composer**

Run the following to include this package via Composer

```
composer require mdsatu/switcher
```

Once download is complete, the next thing you have to do is include the service provider within `config/app.php`.

```
'providers' => [
        DWK\Switcher\SwitcherServiceProvider::class,
];
```

Then run `php artisan vendor:publish --provider="DWK\Switcher\SwitcherServiceProvider"` to get the config of Switcher.

### Configuration

[](#configuration)

Setup default application switcher in `switcher.php` config. (Optional but recommended)

#### Available options:

[](#available-options)

OptionDescription`default_column`Here you may specify the default column name.`loader`Here you may specify loader animation (Optional).### Usage

[](#usage)

Once configuration is complete you can add this code inside the body tag to activate the "Switcher".

```
@include('switcher::code')
```

Now put this code where you want to preview the "Switch"

```
@include('switcher::switch', [
    'table' => 'users',
    'data' => $query_data,
    'column' => 'status', // Optional
    'id' => 1 // Optional
])
```

### Example

[](#example)

```
    >

        Document

        @include('switcher::switch', [
            'table' => 'users',
            'data' => $query_data
        ])

```

### Maintainers

[](#maintainers)

This package is maintained by [MD Satu](https://mdsatu.github.io) and you!

### License

[](#license)

This package is licensed under the [MIT license](https://github.com/mdsatu/switcher/blob/master/LICENSE).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~237 days

Recently: every ~296 days

Total

6

Last Release

940d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/af4f1a5f78f9e43836b4669d9eb57e679a5d3defa9ca316f4618df811743c9b9?d=identicon)[mdsatu](/maintainers/mdsatu)

---

Top Contributors

[![mdsatu](https://avatars.githubusercontent.com/u/18825871?v=4)](https://github.com/mdsatu "mdsatu (13 commits)")

---

Tags

switcherSwitch column value

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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