PHPackages                             jbohme/laravel-environment-selector - 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. jbohme/laravel-environment-selector

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

jbohme/laravel-environment-selector
===================================

This is a package for selecting one of multiple environments in a laravel application.

1.0.1(4y ago)5136MITPHPPHP 7.\*|8.\*

Since Mar 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jbohme/laravel-environment-selector)[ Packagist](https://packagist.org/packages/jbohme/laravel-environment-selector)[ RSS](/packages/jbohme-laravel-environment-selector/feed)WikiDiscussions master Synced today

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

[![](icon.png)](icon.png) Laravel Environment Selector
======================================================

[](#-laravel-environment-selector)

[![Latest Stable Version](https://camo.githubusercontent.com/aa5942ab25a8495f38f1c104f7bf93d27099c7a0fd57b0646af1fab289db4cf8/687474703a2f2f706f7365722e707567782e6f72672f6a626f686d652f6c61726176656c2d656e7669726f6e6d656e742d73656c6563746f722f76)](https://packagist.org/packages/jbohme/laravel-environment-selector) [![Total Downloads](https://camo.githubusercontent.com/4032caa6188e5a95489f7efb6d807d0d2e0c8615699d732017d53eac0efab014/687474703a2f2f706f7365722e707567782e6f72672f6a626f686d652f6c61726176656c2d656e7669726f6e6d656e742d73656c6563746f722f646f776e6c6f616473)](https://packagist.org/packages/jbohme/laravel-environment-selector) [![License](https://camo.githubusercontent.com/db318fda662cb76578ffcb946efd4dfb91235fb06a48b4b155f3622661d81b93/687474703a2f2f706f7365722e707567782e6f72672f6a626f686d652f6c61726176656c2d656e7669726f6e6d656e742d73656c6563746f722f6c6963656e7365)](https://packagist.org/packages/jbohme/laravel-environment-selector)[![PHP Version Require](https://camo.githubusercontent.com/1fdeac8994e82649418f6e704f5320333d7fa73f1291accda97129ef15b373c4/687474703a2f2f706f7365722e707567782e6f72672f6a626f686d652f6c61726176656c2d656e7669726f6e6d656e742d73656c6563746f722f726571756972652f706870)](https://packagist.org/packages/jbohme/laravel-environment-selector)

This package is intended to make it easier to choose the .env. You can have *".env.testing"*, *".env.development"* among others.

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

[](#installation)

Install the package through [composer](http://getcomposer.org):

```
composer require jbohme/laravel-environment-selector
```

You must publish a project configuration with:

```
php artisan vendor:publish --tag=laravel-env-selector
php artisan config:cache
```

After this the *env-selector.json* was created in the root.

Usage
-----

[](#usage)

Run the command to modify *bootstrap/app.php* to enable environment selection.

```
php artisan publish-env-selector
```

Change the environment in the *env-selector.json* file.

[](https://github.com/jbohme/laravel-environment-selector/blob/master/LICENSE.md) License
-----------------------------------------------------------------------------------------

[](#-license)

Laravel Horizon is open-sourced software licensed under the [MIT license](https://github.com/jbohme/laravel-environment-selector/blob/master/LICENSE.md).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

1585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4990a575b72208977c95697be2a514219817b9d92e2c8be2b6213437466e541b?d=identicon)[jbohme](/maintainers/jbohme)

---

Top Contributors

[![jbohme](https://avatars.githubusercontent.com/u/32618269?v=4)](https://github.com/jbohme "jbohme (6 commits)")

---

Tags

environmentlaravellaravelenvironments

### Embed Badge

![Health badge](/badges/jbohme-laravel-environment-selector/health.svg)

```
[![Health](https://phpackages.com/badges/jbohme-laravel-environment-selector/health.svg)](https://phpackages.com/packages/jbohme-laravel-environment-selector)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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