PHPackages                             kduma/dotenv-filler - 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. kduma/dotenv-filler

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

kduma/dotenv-filler
===================

Laravel 5.1 command to create/fill missing fields in .env file based on rules in .env.example file.

v1.1.0(10y ago)72.4kMITPHPPHP &gt;=5.4.0

Since Jan 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/LV-dotenv-filler)[ Packagist](https://packagist.org/packages/kduma/dotenv-filler)[ RSS](/packages/kduma-dotenv-filler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

L5-dotenv-filler
================

[](#l5-dotenv-filler)

[![Latest Stable Version](https://camo.githubusercontent.com/0008ea5dd5b4a8bbd323857aa3ce98c8aab6600e708563c1cd8b342e63f5a288/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f646f74656e762d66696c6c65722f762f737461626c652e737667)](https://packagist.org/packages/kduma/dotenv-filler)[![Total Downloads](https://camo.githubusercontent.com/c16adba4f570d56034e666df4a6419b75cb31e8d0f76a1f4f3a63a56eac7996a/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f646f74656e762d66696c6c65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/dotenv-filler)[![Latest Unstable Version](https://camo.githubusercontent.com/4a72bfadbf1205552b26e04056a7e01431c9c598c43e97f89886036731033314/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f646f74656e762d66696c6c65722f762f756e737461626c652e737667)](https://packagist.org/packages/kduma/dotenv-filler)[![License](https://camo.githubusercontent.com/ebc7ae027cb58030d279fde4247b456dd2a8e7103426b909c76efdd8a25a8da1/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f646f74656e762d66696c6c65722f6c6963656e73652e737667)](https://packagist.org/packages/kduma/dotenv-filler)[![SensioLabsInsight](https://camo.githubusercontent.com/66ed4d8771f05d0c5ac0fcf0d1a452ecb6d05a79a729b46fa2153c096d6420b4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63653065653964662d396133642d343833322d616365322d6562336136663534303566652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ce0ee9df-9a3d-4832-ace2-eb3a6f5405fe)[![StyleCI](https://camo.githubusercontent.com/526515f1633fb4097720b336a44d401cb9d5285a2ea0f3ac8587087d3834ed15/68747470733a2f2f7374796c6563692e696f2f7265706f732f33303039383433342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/30098434)

Laravel 5.1 command to create/fill missing fields in `.env` file based on rules in `.env.example` file.

Setup
=====

[](#setup)

Add the package to the require section of your composer.json and run `composer update`

```
"kduma/dotenv-filler": "^1.1"

```

Then add the Service Provider to the providers array in `config/app.php`:

```
KDuma\DotEnvFiller\DotEnvFillerServiceProvider::class,

```

Usage
=====

[](#usage)

Command syntax is as following:

```
config:env [-o|--overwrite] [-d|--defaults]

```

- `--overwrite (-o)` - Don't skip keys that exists in `.env`. (will ask if you want to overwrite or not)
- `--defaults (-d)` - Ask for defaults. (if you don't use this option command will assume that you want defaults options)

Rules in `.env.example`
=======================

[](#rules-in-envexample)

- `APP_KEY=VALUE` - it will be written as is.
- `DB_HOST=(TEXT)` - it will prompt for input (plaintext).
- `DB_PASSWORD=(PASSWORD)` - it will prompt for input (secret).
- `APP_ENV=(local|production)` - it will allow to select `local` or `production`.
- `APP_DEBUG=(true|false){APP_ENV=local:true|APP_ENV=production:false}` - it will allow to select `true` or `false` but before, it will sugests an default based on rules.

Sample `.env.example`
=====================

[](#sample-envexample)

```
APP_ENV=(local|production)
APP_DEBUG=(true|false){APP_ENV=local:true|APP_ENV=production:false}
APP_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

DB_HOST=(TEXT){APP_ENV=local:localhost}
DB_DATABASE=(TEXT){APP_ENV=local:homestead}
DB_USERNAME=(TEXT){APP_ENV=local:homestead}
DB_PASSWORD=(PASSWORD){APP_ENV=local:secret}

CACHE_DRIVER=(file|database|array){APP_ENV=local:file|APP_ENV=production:file}
SESSION_DRIVER=(file|database|cookie|array){APP_ENV=local:database|APP_ENV=production:database}
QUEUE_DRIVER=(sync|database|beanstalkd){APP_ENV=local:database|APP_ENV=production:database}

SMTP_HOST=(TEXT){APP_ENV=local:mailtrap.io}
SMTP_PORT=(TEXT){SMTP_HOST=mailtrap.io:2525}
SMTP_USERNAME=(TEXT)
SMTP_PASSWORD=(PASSWORD)

NOCAPTCHA_SECRET=(TEXT)
NOCAPTCHA_SITEKEY=(TEXT)

WEBCRON_SECRET=(TEXT|null)
WEBCRON_TIMELIMIT=(TEXT|30|60|null){APP_ENV=local:30|APP_ENV=production:60}
WEBCRON_RUNLIMIT=(TEXT|30|60|null){APP_ENV=local:null|APP_ENV=production:null}

```

Packagist
=========

[](#packagist)

View this package on Packagist.org: [kduma/dotenv-filler](https://packagist.org/packages/kduma/dotenv-filler)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~32 days

Total

6

Last Release

3987d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d09451622719c7efce1a7971b8e5a875859504882ba2b8c279d1015a99e8f12c?d=identicon)[kduma](/maintainers/kduma)

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (27 commits)")

---

Tags

laravelphplaravelartisanenvdotenvcommand

### Embed Badge

![Health badge](/badges/kduma-dotenv-filler/health.svg)

```
[![Health](https://phpackages.com/badges/kduma-dotenv-filler/health.svg)](https://phpackages.com/packages/kduma-dotenv-filler)
```

###  Alternatives

[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)

PHPackages © 2026

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