PHPackages                             mesingh/laravel-env-packages - 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. mesingh/laravel-env-packages

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

mesingh/laravel-env-packages
============================

This package lets you define various package requirements according to the environment.

v1.0.0-beta(9y ago)172MITPHPPHP ~5.6|~7.0

Since May 3Pushed 8y ago2 watchersCompare

[ Source](https://github.com/meSingh/laravel-env-packages)[ Packagist](https://packagist.org/packages/mesingh/laravel-env-packages)[ Docs](https://github.com/meSingh/laravel-env-packages)[ RSS](/packages/mesingh-laravel-env-packages/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Laravel Environment Specific Packages
=====================================

[](#laravel-environment-specific-packages)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bed9532dd91fb2007620ac4e217e15376304ddf17337ef4895ae461025a6a9fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6553696e67682f6c61726176656c2d656e762d7061636b616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/meSingh/laravel-env-packages)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package lets you define various package requirements according to the environment.

Install
-------

[](#install)

Via Composer

```
$ composer require mesingh/laravel-env-packages
```

Then add the service provider in `config/app.php`:

```
meSingh\EnvPackages\EnvPackagesServiceProvider::class,
```

Then publish vendor files for access the configuration file:

```
$ php artisan vendor:publish --provider="meSingh\EnvPackages\EnvPackagesServiceProvider"
```

Usage
-----

[](#usage)

You need to run `envpackages:generate` command after each configuration update.

```
$ php artisan envpackages:generate
```

Configuration
-------------

[](#configuration)

`envpackages.php` file is used to define any package requirements that are loaded over some specific environment like you might have some development packages installed that you do not wish to load over production and/or staging.

You can define any requirement in any environment. So to define a provider for the local environment, you just need to add it like this:

```
'providers' => [
    'local'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
],
```

In case you need to load this provider in multiple environments like local, testing and development, you can do so like this:

```
'providers' => [
    'local,testing,development'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
],
```

You can also do any kind of combinations in configuration like this:

```
'providers' => [
    'local,testing,development'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
    'development'  => [
        Provider\Package\OtherServiceProvider::class,
    ],
    'staging,production'  => [
        Provider\Package\AnotherServiceProvider::class,
    ],
],
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

3345d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cb6f069e3fd7405b76938389fa713e22db06814110ce62c9478383545b0404e?d=identicon)[meSingh](/maintainers/meSingh)

---

Top Contributors

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

---

Tags

laravelmeSinghEnvPackages

### Embed Badge

![Health badge](/badges/mesingh-laravel-env-packages/health.svg)

```
[![Health](https://phpackages.com/badges/mesingh-laravel-env-packages/health.svg)](https://phpackages.com/packages/mesingh-laravel-env-packages)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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