Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Environment Variables

Security covered Under active development 64 sites

This module allows you to view environment variables defined in your `.env` file through a Drupal interface. It uses the PHP dotenv library to read these variables and provides a service for custom modules to access them, with configuration available for the `.env` file path.

It provides an interface to view the user defined environment variables from the .env file.
It will read the .env file using third party library called 'PHP dotenv'.
This module creates a service to read the user defined environment variables
from any other custom module by injecting to constructor.

In the configuration form settings, update the .env file path in the server.

Example :

-> /../ (For outside docroot folder)
-> / (For docroot folder)
-> /env (For docroot/env folder)

More info:

* For a full description of the module, visit [the project page]
(https://www.drupal.org/project/env_variables).

REQUIREMENTS

This module requires dependency of PHP library "vlucas/phpdotenv".

INSTALLATION

* Since this module depends on third party PHP library, Use composer to install this module.

* Install this module as you would normally install a
contributed Drupal module. Visit https://www.drupal.org/node/1897420
for further information.

CONFIGURATION

* Configure the Settings in
Administration » Configuration » Environment Variables:

1. After install this module, we can see the menu 'Environment Variables' in the
admin configuration menu.
2. By default, administrator role can access this url. If we want to access
this url to different role, go to permission page and find the word
'Access Environment Variables' to set the permission for different role.

MAINTAINERS

Current maintainers:
Elavarasan R - https://www.drupal.org/user/1902634

Drupal 8–11

Ask your assistant about Environment Variables

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
3.0.0 Stable 8–11 Jul 11, 2024