PHPackages                             jenky/laravel-envloader - 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. [Framework](/categories/framework)
4. /
5. jenky/laravel-envloader

ActiveLibrary[Framework](/categories/framework)

jenky/laravel-envloader
=======================

Laravel 5 environment loader

1.2.0(8y ago)0862MITPHPPHP &gt;=5.5.9

Since Apr 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jenky/laravel-envloader)[ Packagist](https://packagist.org/packages/jenky/laravel-envloader)[ RSS](/packages/jenky-laravel-envloader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (9)Used By (0)

Laravel 5 environment loader
----------------------------

[](#laravel-5-environment-loader)

[![Latest Stable Version](https://camo.githubusercontent.com/0c82639657f370c21bc1042242f5fa6f7270ec53f26d3b9fde2e0f5342c8f145/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6b792f6c61726176656c2d656e766c6f616465722f762f737461626c652e737667)](https://packagist.org/packages/jenky/laravel-envloader)[![Total Downloads](https://camo.githubusercontent.com/a8f07602d69388fd2f5b20cc7be00cf45b9788fa53639a5e4b9fad422f06fb50/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6b792f6c61726176656c2d656e766c6f616465722f642f746f74616c2e737667)](https://packagist.org/packages/jenky/laravel-envloader)[![License](https://camo.githubusercontent.com/493ebd540986f12f506a9f165944a539e8d2d484ce00ed89b778e41dfb6a2457/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6b792f6c61726176656c2d656e766c6f616465722f6c6963656e73652e737667)](https://packagist.org/packages/jenky/laravel-envloader)

Load configs, providers, aliases based on the `APP_ENV` name in `.env`.

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

[](#installation)

Require this package with composer:

```
composer require jenky/laravel-envloader ~1.0

```

or add this to `composer.json`

```
"jenky/laravel-envloader": "~1.0"

```

After updating composer, add the ServiceProvider to the providers array in `config/app.php`. Make sure the `EnvLoaderServiceProvider` is loaded before other app service providers.

```
'Jenky\LaravelEnvLoader\EnvLoaderServiceProvider',
// or
Jenky\LaravelEnvLoader\EnvLoaderServiceProvider::class, // PHP 5.5

/*
 * Application Service Providers...
 */
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
// ...
```

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish

```

The config files will be published to `config/app/env`

Usage
-----

[](#usage)

Modify the config files in `config/app/env` to suite your needs

```
/* configs.php */

return [
	'local' => [
		'app' => [
			'url' => 'http://myapp.local',
		],
	],
	'sandbox' => [
		'app' => [
			'url' => 'http://sandbox.myapp.com',
		],
	],
	'testing' => [
		'session' => [
			'driver' => 'file',
		],
	],
];
```

Multiple environments may be delimited using a "pipe" character

```
/* aliases.php */

return [
	'local|staging' => [
		'Debugbar' => 'Barryvdh\Debugbar\Facade',
	],
];
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~221 days

Total

8

Last Release

3167d ago

PHP version history (2 changes)1.0.1PHP &gt;=5.4.0

1.1.5PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/783e915bb411d566e8f1035f197842db5e870a2a995b3943bcbe5db2f9abf09b?d=identicon)[Milano](/maintainers/Milano)

---

Top Contributors

[![jenky](https://avatars.githubusercontent.com/u/1808758?v=4)](https://github.com/jenky "jenky (25 commits)")

---

Tags

frameworklaravel

### Embed Badge

![Health badge](/badges/jenky-laravel-envloader/health.svg)

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

###  Alternatives

[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[lanin/laravel-api-debugger

Easily debug your JSON API.

2311.8M](/packages/lanin-laravel-api-debugger)

PHPackages © 2026

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