awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vlucas avatar

vlucas/phpdotenv

0
View on GitHub↗
13,536 Stars·658 Forks·PHP·BSD-3-Clause·8 Aufrufe

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.

Star-Verlauf

Star-Verlauf für vlucas/phpdotenvStar-Verlauf für vlucas/phpdotenv

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Phpdotenv

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Phpdotenv.
  • bkeepers/dotenvAvatar von bkeepers

    bkeepers/dotenv

    6,758Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗6,758
  • theskumar/python-dotenvAvatar von theskumar

    theskumar/python-dotenv

    8,794Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗8,794
  • caarlos0/envAvatar von caarlos0

    caarlos0/env

    6,004Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗6,004
  • symfony/dotenvAvatar von symfony

    symfony/dotenv

    3,790Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗3,790
Alle 30 Alternativen zu Phpdotenv anzeigen→

Häufig gestellte Fragen

Was macht 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.

Was sind die Hauptfunktionen von vlucas/phpdotenv?

Die Hauptfunktionen von vlucas/phpdotenv sind: 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.

Welche Open-Source-Alternativen gibt es zu vlucas/phpdotenv?

Open-Source-Alternativen zu vlucas/phpdotenv sind unter anderem: 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,…