awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vlucas avatar

vlucas/phpdotenv

0
View on GitHub↗
13,536 estrellas·658 forks·PHP·BSD-3-Clause·8 vistas

Phpdotenv

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 configuration strings into associative arrays.

Features

  • Environment Variable-Based Configuration - Provides a mechanism to configure PHP applications using environment variables loaded from files.
  • Environment Variable Loaders - Loads environment variables from .env files into PHP system environment variables and global arrays.
  • Multi-Environment Configuration Systems - Enables switching between development, staging, and production settings using different configuration files.
  • Environment Variable Configurations - Loads key-value pairs from files and injects them as runtime settings and configuration parameters.
  • Secrets Management - Facilitates secret management by storing API keys and passwords in external files outside version control.
  • File-Based Loading - Reads key-value pairs from .env files to populate system environment variables and global arrays.
  • Environment Variable Validation - Checks that required variables are present and match specific criteria like data types or allowed values.
  • Hierarchical Variable Resolvers - Resolves nested variable references to eliminate duplication and ensure consistency across settings.
  • Environment Variable Enforcement - Validates the presence of required environment variables and ensures they match specified data types.
  • Variable Interpolators - Resolves nested references and variables within environment files to reduce configuration repetition.
  • Environment Variable Substitution - Resolves nested references and placeholders within environment variables using recursive substitution.
  • Configuration Parsers - Interprets raw environment configuration strings and maps them into application state arrays.
  • Environment String Parsers - Transforms raw environment definition strings into associative arrays using dedicated parsing logic.
  • Environment Variable Validation - Ensures required environment variables exist and match specific data types or allowed values.
  • Superglobal Synchronization - Copies parsed configuration values into PHP superglobals and system functions for application-wide access.
  • Configuration - Loads environment variables from .env files.

Historial de estrellas

Gráfico del historial de estrellas de vlucas/phpdotenvGráfico del historial de estrellas de vlucas/phpdotenv

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Phpdotenv

Proyectos open-source similares, clasificados según cuántas características comparten con Phpdotenv.
  • bkeepers/dotenvAvatar de bkeepers

    bkeepers/dotenv

    6,758Ver en 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
    Ver en GitHub↗6,758
  • theskumar/python-dotenvAvatar de theskumar

    theskumar/python-dotenv

    8,794Ver en 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
    Ver en GitHub↗8,794
  • caarlos0/envAvatar de caarlos0

    caarlos0/env

    6,004Ver en GitHub↗

    env is a Go library that reads environment variables and populates the fields of a Go struct according to tag directives. It uses reflection to iterate over struct types and tags at runtime, mapping environment variable names to struct fields and applying parsing behavior defined in struct tags. The library supports required field validation, returning errors when marked fields are missing or empty after parsing. It also provides default value fallback from struct tags when environment variables are not set, environment variable expansion that recursively substitutes references within values,

    Goconfigconfigurationenvironment
    Ver en GitHub↗6,004
  • symfony/dotenvAvatar de symfony

    symfony/dotenv

    3,790Ver en GitHub↗

    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

    PHP
    Ver en GitHub↗3,790
Ver las 30 alternativas a Phpdotenv→

Preguntas frecuentes

¿Qué hace vlucas/phpdotenv?

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.

¿Cuáles son las características principales de vlucas/phpdotenv?

Las características principales de vlucas/phpdotenv son: Environment Variable-Based Configuration, Environment Variable Loaders, Multi-Environment Configuration Systems, Environment Variable Configurations, Secrets Management, File-Based Loading, Environment Variable Validation, Hierarchical Variable Resolvers.

¿Qué alternativas de código abierto existen para vlucas/phpdotenv?

Las alternativas de código abierto para vlucas/phpdotenv incluyen: bkeepers/dotenv — Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a… theskumar/python-dotenv — python-dotenv is a library and command line interface for managing environment variables in Python applications. It… caarlos0/env — env is a Go library that reads environment variables and populates the fields of a Go struct according to tag… symfony/dotenv — This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local… luggit/react-native-config — react-native-config is a cross-platform mobile environment manager and native build configuration tool. It implements… dynaconf/dynaconf — Dynaconf is a configuration management library for Python applications that provides a unified system for loading,…