awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
symfony avatar

symfony/dotenv

0
View on GitHub↗
3,790 stars·28 forks·PHP·MIT·18 viewssymfony.com/dotenv↗

Dotenv

This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local text files to populate global server and system environment arrays, ensuring that sensitive credentials and application settings remain separate from the source code.

The tool implements twelve-factor app configuration principles by mapping local files to process-level variables. It utilizes a regex-based parser to identify variable assignments while stripping comments and whitespace, and it includes guards to prevent local configuration files from overwriting existing host-level system variables.

The project covers environment configuration management, local development setup, and application security by injecting configuration settings directly into the process memory space for global access during runtime.

Features

  • Dotenv Loaders - Provides a utility to load environment variables from local configuration files into the process environment.
  • Environment File Loaders - Loads key-value pairs from .env files to configure application runtime behavior.
  • Environment Variable Loaders - Parses local configuration files to populate global environment variables for application runtime settings.
  • Runtime Environment Variable Injections - Injects parsed configuration values into the system environment and superglobals for global runtime access.
  • Environment Configuration Management - Manages application behavior by loading key-value pairs from local files into global environment arrays.
  • PHP Environment Managers - Manages application-specific environment settings in PHP projects using standard configuration file formats.
  • Secrets Management - Protects sensitive credentials and API keys by preventing them from being hardcoded into the source code.
  • Environment Variable Management - Provides a system for loading and managing runtime environment variables as the primary configuration source.
  • Environment Variable Injection - Injects operating system environment variables from local configuration files into the application runtime.
  • Process Environment Injections - Writes parsed configuration values directly into the process environment memory space for global access.
  • Environment Variable-Based Configuration - Configures the application by parsing environment files and populating server and system superglobals.
  • Twelve-Factor App Implementations - Implements the Twelve-Factor App methodology by storing application configuration in the environment.
  • Immutable Variable Enforcement - Prevents the reassignment of existing system environment variables to ensure host-level settings are preserved.
  • Environment Variable Protection Policies - Implements policies that prevent local configuration files from overwriting existing system environment variables.
  • Configuration File Parsers - Uses a regex-based parser to extract structured configuration data from raw text files.
  • Environment Variable Mappings - Maps local text files to process-level variables to separate sensitive credentials from the source code.
  • Regular Expression-Based Parsing - Uses regular expression patterns to identify variable assignments and strip comments from configuration files.
  • Configuration - Loads environment variables from .env files.

Star history

Star history chart for symfony/dotenvStar history chart for symfony/dotenv

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Dotenv

These projects share indexed features with Dotenv. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • theskumar/python-dotenvtheskumar avatar

    theskumar/python-dotenv

    8,794View on GitHub↗

    python-dotenv is a library and command line interface for managing environment variables in Python applications. It functions as a configuration parser and loader that reads key-value pairs from files and injects them into the system environment, enabling the decoupling of application configuration from source code. The project provides a command line interface for manipulating and editing environment variables within configuration files. It also includes a mechanism for recursive variable interpolation, allowing dynamic placeholders within configuration files to be resolved using existing en

    Python
    View on GitHub↗8,794
  • joho/godotenvjoho avatar

    joho/godotenv

    10,483View on GitHub↗

    godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to extract configuration data from files into maps and inject those key-value pairs directly into the system environment of a Go application process. The project includes a configuration file serializer for exporting environment variable maps back into formatted files and a parser for extracting data without modifying the system environment. It supports injecting variables from strings or files into the process environment using priority-based overloading and overwriting. The li

    Godotenvenvironment-variablesgo
    View on GitHub↗10,483
  • vlucas/phpdotenvvlucas avatar

    vlucas/phpdotenv

    13,536View on GitHub↗

    phpdotenv is a PHP environment variable loader and configuration parser. It reads key-value pairs from files and populates them into PHP system environment variables and global arrays to avoid hardcoding sensitive settings in code. The project includes a configuration variable interpolator to resolve nested references and variables within environment files. It also provides an environment variable validator to ensure required variables exist and match specific data types or values. The system covers application secret management, multi-environment deployment, and the parsing of raw configura

    PHPconfigurationdotenvenvironment
    View on GitHub↗13,536
  • bkeepers/dotenvbkeepers avatar

    bkeepers/dotenv

    6,758View on GitHub↗

    Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a configuration parser to extract variables into hashes and a loader to inject those pairs into the global environment. The project features a variable interpolator that resolves environment variables and shell command outputs within configuration values. It also provides a validator to verify that required configuration keys are present during application initialization. The toolset covers environment variable management, including the ability to generate configuration templates

    Ruby
    View on GitHub↗6,758
Compare all 30 related projects→

Frequently asked questions

What does symfony/dotenv do?

This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local text files to populate global server and system environment arrays, ensuring that sensitive credentials and application settings remain separate from the source code.

What are the main features of symfony/dotenv?

The main features of symfony/dotenv are: Dotenv Loaders, Environment File Loaders, Environment Variable Loaders, Runtime Environment Variable Injections, Environment Configuration Management, PHP Environment Managers, Secrets Management, Environment Variable Management.

Which projects share features with symfony/dotenv?

Projects with overlapping indexed features include: theskumar/python-dotenv — python-dotenv is a library and command line interface for managing environment variables in Python applications. It… joho/godotenv — godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to… vlucas/phpdotenv — phpdotenv is a PHP environment variable loader and configuration parser. It reads key-value pairs from files and… bkeepers/dotenv — Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a… santiq/bulletproof-nodejs — Implementation of a bulletproof node.js API 🛡️. dynaconf/dynaconf — Dynaconf is a configuration management library for Python applications that provides a unified system for loading,…