PHPackages                             jonathanport/artisan-export-config-vars-to-heroku - 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. [CLI &amp; Console](/categories/cli)
4. /
5. jonathanport/artisan-export-config-vars-to-heroku

ActiveLibrary[CLI &amp; Console](/categories/cli)

jonathanport/artisan-export-config-vars-to-heroku
=================================================

A simple Artisan command for Laravel to auto export .env config vars into a Heroku app. Removes the issue of having to manually add all config vars. Especially useful if you have lots!

12.0kPHP

Since Sep 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/JonathanPort/artisan-export-config-vars-to-heroku)[ Packagist](https://packagist.org/packages/jonathanport/artisan-export-config-vars-to-heroku)[ RSS](/packages/jonathanport-artisan-export-config-vars-to-heroku/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Export config vars to Heroku
============================

[](#export-config-vars-to-heroku)

A Laravel artisan command to allow a quick export of config vars to Heroku with one command. Eliminates all that time spent manually inputting config vars either through the CLI or through the web app.

### Requirements

[](#requirements)

- Laravel 5
- PHP 7
- Heroku CLI
- Project to have a Heroku remote connected

### Installation

[](#installation)

```
composer require jonathanport/artisan-export-config-vars-to-heroku
```

### Usage

[](#usage)

Simply run:

```
php artisan export-config-vars-to-heroku
```

The command line will ask you to input a file name. This could be your default `.env` file but I personally like to make a separate `.env.heroku` file and use that to input all my config vars so I don't mess up my local file. Inside of the command line, type in `.your-env` and it will continue to import your config vars.

By default, the script will not export empty values e.g. `APP_NAME=`. To allow the export of empty values, you can add the `--include-empty-values` flag and the script will include empty values. The script will include `null` values regardless.

### Feedback

[](#feedback)

Feedback is welcome. Enjoy!

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16456310?v=4)[Jonathan Port](/maintainers/JonathanPort)[@JonathanPort](https://github.com/JonathanPort)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jonathanport-artisan-export-config-vars-to-heroku/health.svg)

```
[![Health](https://phpackages.com/badges/jonathanport-artisan-export-config-vars-to-heroku/health.svg)](https://phpackages.com/packages/jonathanport-artisan-export-config-vars-to-heroku)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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