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 yesterday

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 27% 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://www.gravatar.com/avatar/379fab5f0c92ccb55dee1970a3f26ae64355a84b6e7b179c64c411f2c850d4b4?d=identicon)[JonathanPort](/maintainers/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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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