PHPackages                             lostlink/laravel-dotenv - 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. lostlink/laravel-dotenv

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

lostlink/laravel-dotenv
=======================

Easily retrieve your dotenv configurations

v0.0.1(4y ago)03.8k[3 PRs](https://github.com/lostlink/laravel-dotenv/pulls)MITPHPPHP ^8.0

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lostlink/laravel-dotenv)[ Packagist](https://packagist.org/packages/lostlink/laravel-dotenv)[ Docs](https://github.com/lostlink/laravel-dotenv)[ GitHub Sponsors](https://github.com/lostlink)[ RSS](/packages/lostlink-laravel-dotenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (5)Used By (0)

Easily retrieve your dotenv configurations
==========================================

[](#easily-retrieve-your-dotenv-configurations)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d9eea613bcb7aadb7bfe8f1d9d623063409e0d232027dbc8fdeb3229df673e56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f73746c696e6b2f6c61726176656c2d646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lostlink/laravel-dotenv)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7ac2774172e33c090ea328d03f51202f2b894cf1d04781c8949fa753506c385f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f73746c696e6b2f6c61726176656c2d646f74656e762f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/lostlink/laravel-dotenv/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bfb507b9b5d1e72a6440cf815403aa90949a05ae50925d2ff091f70a910e854c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6f73746c696e6b2f6c61726176656c2d646f74656e762f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/lostlink/laravel-dotenv/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/104fb3a187d4e7788321b15b52855ebd4b6b54c5844f749a0b33632e083281dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f73746c696e6b2f6c61726176656c2d646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lostlink/laravel-dotenv)

This package makes it simple to interact with dotEnv management system to easily retrieve your environment configs for any project, target system and environment.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/1786a21340f6020d3be8e3d1b6a1f371ccacb0010fadf22842892efad8252d2e/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d646f74656e762e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-dotenv)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require lostlink/laravel-dotenv
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-dotenv-config"
```

This is the contents of the published config file:

```
return [
    'url' => env('DOTENV_URL', 'https://dotenv.ca'),
    'token' => env('DOTENV_TOKEN'),
];
```

Usage
-----

[](#usage)

```
php artisan dotenv:pull -p={projectName} -t={targetSystem} -e={environmentName}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Nuno Souto](https://github.com/nsouto)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1592d ago

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![nsouto](https://avatars.githubusercontent.com/u/986996?v=4)](https://github.com/nsouto "nsouto (4 commits)")

---

Tags

laravellaravel-dotenvlostlink

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/lostlink-laravel-dotenv/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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