🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
dotenv icon
Actively maintained Tested with WP 7.1 #5 in config

dotenv

A WordPress plugin to set WordPress options from a .env file.

Active installs10+10+ tier
Downloads · 30d186▲ +138.5% vs prev. 30d
Rating—0 reviews
Health score66/100Good
All-time downloads4.3KSince May 2021
Support resolved—No recent threads
RequiresWP 6.0PHP 7.4+
Downloads · 7d30▼ -70.3% week over week
Our verdict

Solid choice

dotenv is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

  • Actively developed — last update 2 weeks ago
  • Tested with the latest WordPress (7.1)
  • Small user base (10+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

102030Sep 4Oct 18Dec 2
Yesterday7
Daily average (1y)3
Peak day41Nov 20, 2026
Last 12 months937

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where dotenv stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
config #98 2,534 Best config plugins →
configuration >100 10,000 Best configuration plugins →
developer >100 10,000 Best developer plugins →
environment >100 4,922 Best environment plugins →
tools >100 10,000 Best tools plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

About dotenv

From the official readme · v1.0.4

Description

Any WPENV_ prefixed variables in the .env will be used to override the WordPress options. For example, if you’d like to set a specific environment to “Discourage search engines from indexing this site”, you can add WPENV_BLOG_PUBLIC=0 to your .env file.

  • Any option in the wp_options table or retrieved by get_option() can be set this way.

  • You can define keys either as WPENV_BLOGDESCRIPTION or as WPENV_blogdescription, both will work.

  • If you’d like to define the location of your .env file, rather than the plugin looking for it, you can filter dotenv_location to be a directory path.

  • You can also change the WPENV_ prefix by filtering dotenv_key_prefix to be a different prefix.

Installation

  • Install the plugin.
    • Add a .env file either in the root of your site or one level above.
    • Add any WordPress options keys to filter with the prefix WPENV_

Changelog

1.0.4

  • Fixed uppercase keys like WPENV_BLOGDESCRIPTION not setting the option.
  • Added the dotenv_key_prefix filter. The misspelled wpdotev_key_prefix filter still works.
  • An invalid .env file no longer causes a fatal error.
  • Updated phpdotenv to 5.8.
  • Requires WordPress 6.0 and PHP 7.4, tested up to WordPress 7.1.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best dotenv alternatives

All config plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Brozzme DB Prefix & Tools Addons Brozzme DB Prefix & Tools Addons Easily change your WordPress DB prefix, save time, increase security. by Benoti 9K+ ★★★★★★★★★★ 4.7 (59) 11 months ago 60
2 Developer Debug Tools Developer Debug Tools Lots of debugging and testing tools for developers. by PluginRx 100+ ★★★★★★★★★★ 5 (4) 2 days ago 75
3 Config Constants Config Constants Modify WP_DEBUG and other WordPress constants directly in the WordPress admin rather than… by David Gwyer 100+ ★★★★★★★★★★ 5 (1) 4 months ago 47
4 Configurator Configurator Configurator is a plugin that allows you to edit wp-config.php in the browser. by CodeRichard 60+ ★★★★★★★★★★ No reviews 12 years ago 25
6 Theme Configurator Theme Configurator theme-configurator is the easiest and most elegant way to add customized options pages to… by jazzigor 10+ ★★★★★★★★★★ No reviews 15 years ago 23
7 WP Viewer Log WP Viewer Log Lets see how many errors have had in the present day through a widget, configure your… by Sergio 10+ ★★★★★★★★★★ No reviews 9 years ago 23
8 Tweak Hidden Options Tweak Hidden Options Tweak Hidden Options is a safe and easy-to-use way to modify, tweak, and change various… by Miina Sikk 10+ ★★★★★★★★★★ No reviews 11 years ago 23
9 Advanced Config for S3 Uploads Advanced Config for S3 Uploads Endpoint and bucket configuration for S3 Uploads. by noplanman <10 ★★★★★★★★★★ No reviews 6 years ago 21
10 Image Config Default Image Config Default Image Config Default is a WordPress plugin. It adds default configuration to images when… by benediktbergmann <10 ★★★★★★★★★★ 5 (1) 3 years ago 28

FAQ

dotenv: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is dotenv free?

Yes. dotenv is free to download and use from the official WordPress.org plugin directory.

Is dotenv safe to use in 2026?

dotenv is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 weeks ago, and scores 66/100 on our health check.

How many websites use dotenv?

dotenv is active on 10+ WordPress websites and has been downloaded 4,298 times since it launched in May 2021. It was downloaded 186 times in the last 30 days.

Does dotenv work with WordPress 7.1?

Yes. The developer has tested dotenv up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.

What PHP version does dotenv need?

dotenv requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was dotenv last updated?

The latest version, 1.0.4, was released on November 19, 2026 (2 weeks ago).

Who makes dotenv?

dotenv is developed and maintained by Brad Parbs.

What are the best alternatives to dotenv?

The most popular alternatives to dotenv are Brozzme DB Prefix & Tools A… (9K+ installs), Developer Debug Tools (100+ installs) and Config Constants (100+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open