PHPackages                             byteplus/branch-name-display - 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. byteplus/branch-name-display

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

byteplus/branch-name-display
============================

Git branch name on your Laravel application

v1.0.0(1y ago)114MITPHP

Since Jun 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/byteplus/BranchDisplayName)[ Packagist](https://packagist.org/packages/byteplus/branch-name-display)[ RSS](/packages/byteplus-branch-name-display/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Show Branch Name
================

[](#show-branch-name)

**Overview**

This package allows you to display the current Git branch name on your Laravel application. It is especially useful for development and staging environments.

**Installation**

To install the package, run the following command:

```
composer require byteplus/branch-name-display --dev

```

**Configuration**

In your **.env** file, add the following line to control the visibility of the branch name:

```
DISPLAY_BRANCH_NAME=true

```

This will enable the branch name display only for **local** and **staging** environments by default.

**Publishing Assets**

It is required to published the CSS file.

```
php artisan vendor:publish --tag=public

```

Publish the view file is optional.

```
php artisan vendor:publish --tag=views

```

Feel free to customize them as needed.

**Customization**

The appearance of the branch name display can be customized by modifying the published CSS file located at:

```
public/css/branch-name-display.css

```

**Usage**

To use the branch name display, add the Blade directive right after the opening tag in your **layouts.app** file:

```
@conditionalBranchNameDisplay

```

This will ensure the branch name is displayed according to your configuration settings.

> Note: If you don't see the changes immediately, you may need to clear the cache by running the following command:

```
php artisan view:clear
php artisan cache:clear

```

**Author**

Byteplus

**License**

This package is licensed under the MIT License.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

688d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b25c685390a18edcdae8b8c7218bc7ad47ab6659b6fe0ead50d1f37fe45b9cb?d=identicon)[byteplus](/maintainers/byteplus)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/byteplus-branch-name-display/health.svg)

```
[![Health](https://phpackages.com/badges/byteplus-branch-name-display/health.svg)](https://phpackages.com/packages/byteplus-branch-name-display)
```

PHPackages © 2026

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