PHPackages                             guidovv/branch-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. guidovv/branch-switcher

AbandonedArchivedLibrary

guidovv/branch-switcher
=======================

A package to switch between branches while in the browser

01PHP

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Guidovv/branch-switcher)[ Packagist](https://packagist.org/packages/guidovv/branch-switcher)[ RSS](/packages/guidovv-branch-switcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BranchSwitcher
==============

[](#branchswitcher)

BranchSwitcher is a package that lets you switch Git branches via the browser
[![BranchSwitcher Screenshot](https://camo.githubusercontent.com/4584e566fa3f311767652365b44fa5632c465cd380a413d7dd029783409a827a/68747470733a2f2f692e6962622e636f2f6d6278586e4a662f53636865726d61666472756b2d76616e2d323032302d31312d31332d31342d34302d34332e706e67)](https://camo.githubusercontent.com/4584e566fa3f311767652365b44fa5632c465cd380a413d7dd029783409a827a/68747470733a2f2f692e6962622e636f2f6d6278586e4a662f53636865726d61666472756b2d76616e2d323032302d31312d31332d31342d34302d34332e706e67)

### Requires

[](#requires)

---

**php:** `^7.3`
**laravel/framework:** `^6.18`

### Installation

[](#installation)

---

Require this package with composer

```
composer require guidovv/branch-switcher

```

### Usage

[](#usage)

---

##### Enabling / disabling

[](#enabling--disabling)

By default this package is enabled on the **`local`** and **`testing`** environment.
This can be overwritten by publishing the config and changing it to fit your needs.

##### Toggling

[](#toggling)

By default the branch switcher is hidden on the page.
You can toggle it by pressing **`ctrl` + `b`**.

### Default commands

[](#default-commands)

---

This package comes with a few default commands that are shown to the user.
By publishing the config you can control what commands are being shown to the user and which are checked by default.

```
'commands' => [
    'npm install' => [
        'default' => 1,
    ],
    'composer install' => [
        'default' => 1,
    ],
    'php artisan migrate' => [
        'default' => 1,
    ],
    'php artisan migrate:fresh' => [
        'default' => 1,
    ],
    'php artisan db:seed' => [
        'default' => 0,
    ],
]
```

### Publishing

[](#publishing)

---

To publish the config run:

```
php artisan vendor:publish --tag=branch-switcher-config

```

To publish the resources (JS/CSS) run:

```
php artisan vendor:publish --tag=branch-switcher-resources

```

### Dependencies

[](#dependencies)

---

None

### License

[](#license)

---

MIT

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cbcbfa07dd897654bb9f2e4459d4a777accbd4c096c10cf31d6d2119bc527c3?d=identicon)[Guidovv](/maintainers/Guidovv)

---

Top Contributors

[![guidovanvilsteren](https://avatars.githubusercontent.com/u/80984882?v=4)](https://github.com/guidovanvilsteren "guidovanvilsteren (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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