PHPackages                             andrey-helldar/env-sync-laravel - 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. andrey-helldar/env-sync-laravel

Abandoned → [dragon-code/env-sync-laravel](/?search=dragon-code%2Fenv-sync-laravel)ArchivedLibrary[Framework](/categories/framework)

andrey-helldar/env-sync-laravel
===============================

env-sync package adapter for Laravel framework

2.5.0(2y ago)1816.6k1MITPHPPHP ^7.3 || ^8.0

Since Jan 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheDragonCode/env-sync-laravel)[ Packagist](https://packagist.org/packages/andrey-helldar/env-sync-laravel)[ Fund](https://boosty.to/dragon-code)[ Fund](https://www.donationalerts.com/r/dragon_code)[ RSS](/packages/andrey-helldar-env-sync-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (6)Versions (12)Used By (0)

Environment Synchronization
===========================

[](#environment-synchronization)

[![Environment Synchronization](https://camo.githubusercontent.com/1e5c1bf512493686f9d2bcaf4dbdc9b2468355c1e375e93e5426268c690480d3/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f656e762d73796e632e7376673f6272616e643d6c61726176656c)](https://camo.githubusercontent.com/1e5c1bf512493686f9d2bcaf4dbdc9b2468355c1e375e93e5426268c690480d3/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f656e762d73796e632e7376673f6272616e643d6c61726176656c)

[![Stable Version](https://camo.githubusercontent.com/55d240bac33d2aef7a78a1ee978b221d162725295a51e384095e916b7638e1da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f656e762d73796e632d6c61726176656c3f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/env-sync-laravel)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/env-sync-laravel)[![Total Downloads](https://camo.githubusercontent.com/e408ab2c01d45a0a3ece8d187d6da5d9ee0b4e92ba641d962910c98b43df59c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f656e762d73796e632d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/env-sync-laravel)[![Github Workflow Status](https://camo.githubusercontent.com/aab84af66baadf91f8ce0bd74b7654b29bfedbff7577e264068e86e91db8b3a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f546865447261676f6e436f64652f656e762d73796e632d6c61726176656c2f706870756e69742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/TheDragonCode/env-sync-laravel/actions)[![License](https://camo.githubusercontent.com/898333a2c911cdfa40e060a69eb3b934e960486e6023248e320bb64f68796ced/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f656e762d73796e632d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Tip

Use [msamgan/laravel-env-keys-checker](https://github.com/msamgan/laravel-env-keys-checker) instead.

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

[](#installation)

To get the latest version of `Environment Synchronization`, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require dragon-code/env-sync-laravel --dev
```

Or manually update `require-dev` block of `composer.json` and run `composer update`.

```
{
    "require-dev": {
        "dragon-code/env-sync-laravel": "^2.0"
    }
}
```

### Upgrade from `andrey-helldar/env-sync-laravel`

[](#upgrade-from-andrey-helldarenv-sync-laravel)

1. In your `composer.json` file, replace `"andrey-helldar/env-sync-laravel": "^1.0"` with `"dragon-code/env-sync-laravel": "^2.0"`.
2. Run the `composer update` command.

How to use
----------

[](#how-to-use)

> This package scans files with `*.php`, `*.json`, `*.yml`, `*.yaml` and `*.twig` extensions in the specified folder, receiving from them calls to the `env` and `getenv` functions. Based on the received values, the package creates a key-value array. When saving, the keys are split into blocks by the first word before the `_` character.
>
> Also, all keys are sorted alphabetically.

### Laravel / Lumen Frameworks

[](#laravel--lumen-frameworks)

Just execute the `php artisan env:sync` command.

You can also specify the invocation when executing the `composer update` command in `composer.json` file:

```
{
    "scripts": {
        "post-update-cmd": [
            "php artisan env:sync"
        ]
    }
}
```

Now, every time you run the `composer update` command, the environment settings file will be synchronized.

If you want to force the stored values, you can change the configuration file by publishing it with the command:

```
php artisan vendor:publish --provider="DragonCode\EnvSync\Frameworks\Laravel\ServiceProvider"
```

Now you can change the file `config/env-sync.php`.

### Native using

[](#native-using)

See the documentation in the [base repository](https://github.com/TheDragonCode/env-sync).

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~181 days

Total

11

Last Release

739d ago

Major Versions

1.x-dev → v2.0.02021-11-23

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v2.1.0PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (29 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (27 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

frameworklaravelenvironmentenvdotenvsyncdragondragon codeandrey helldar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andrey-helldar-env-sync-laravel/health.svg)

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

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.2M74](/packages/dragon-code-support)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27330.5k](/packages/rahulalam31-laravel-abuse-ip)[dragon-code/pretty-routes

Pretty Routes for Laravel

10056.2k4](/packages/dragon-code-pretty-routes)[dragon-code/laravel-cache

An improved interface for working with cache

6844.1k8](/packages/dragon-code-laravel-cache)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

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