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

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

codebuglab/laravel-env
======================

Create and update .env file pacakge

v0.1.0(5y ago)2122MITPHPPHP ^7.0

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/codebuglab/laravel-env)[ Packagist](https://packagist.org/packages/codebuglab/laravel-env)[ RSS](/packages/codebuglab-laravel-env/feed)WikiDiscussions main Synced 3w ago

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

Laravel Env
============

[](#laravel-env-)

Laravel small package to locate, append and update `.env` keys.

[![Laravel env](banner.png)](banner.png)

Disclaimer
-----------

[](#disclaimer-)

**TO BE ABLE TO UPDATE `.env` FILE THROUGH BROWSER YOU MAY NEED TO CHANGE `.env` FILE PERMISSIONS TO *755*. THIS WILL MAKE YOUR FILE WRITABLE VIA BROWSER.**

**YOU SHOULD NOT HAVE `.env` IN YOUR PUBLIC ROOT, EX: `public_html`**

Table of contents
------------------

[](#table-of-contents-)

- [Setup](#setup)
    - [Installation](#installation)
- [Available methods](#available-methods)
    - [get](#get)
    - [append](#append)
    - [replace](#replace)
    - [delete](#delete)
    - [locate](#locate)
    - [reset](#reset)

Setup
-----

[](#setup)

### Installation

[](#installation)

To install this package through composer run the following command in the terminal

```
composer require codebuglab/laravel-env
```

Available methods
-----------------

[](#available-methods)

### get

[](#get)

```
\CodeBugLab\Env::get('APP_KEY', 'default');
```

### append

[](#append)

```
\CodeBugLab\Env::append('LOG_CHANNEL', 'daily');
```

### replace

[](#replace)

```
\CodeBugLab\Env::replace('APP_KEY', 'another key');
```

### delete

[](#delete)

```
\CodeBugLab\Env::delete('FOO');
```

### locate

[](#locate)

Returns a `CodeBugLab\Env\Line` object

```
$line = \CodeBugLab\Env::locate('APP_KEY');
```

### reset

[](#reset)

Set to empty value

```
\CodeBugLab\Env::reset('APP_KEY'); // APP_KEY=""
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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

1844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b739843a13277460d1b33db36cacdd3fe8c5c5942f458ed26284aba28c16849?d=identicon)[CodeBugLab](/maintainers/CodeBugLab)

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

---

Top Contributors

[![CommentakMedia](https://avatars.githubusercontent.com/u/70331129?v=4)](https://github.com/CommentakMedia "CommentakMedia (3 commits)")[![moelkomy](https://avatars.githubusercontent.com/u/70802292?v=4)](https://github.com/moelkomy "moelkomy (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

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

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M281](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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