awesome-repositories.com
ब्लॉग
awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंओपन-सोर्स विकल्पसेल्फ-होस्टेड सॉफ्टवेयरब्लॉगसाइटमैप
प्रोजेक्टहमारे बारे मेंहम रैंकिंग कैसे करते हैंप्रेसMCP सर्वर
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vlucas avatar

vlucas/phpdotenv

0
View on GitHub↗
13,536 स्टार्स·658 फोर्क्स·PHP·BSD-3-Clause·8 व्यूज़

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.

स्टार हिस्ट्री

vlucas/phpdotenv के लिए स्टार हिस्ट्री चार्टvlucas/phpdotenv के लिए स्टार हिस्ट्री चार्ट

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

Phpdotenv के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो Phpdotenv के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • bkeepers/dotenvbkeepers का अवतार

    bkeepers/dotenv

    6,758GitHub पर देखें↗

    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
    GitHub पर देखें↗6,758
  • theskumar/python-dotenvtheskumar का अवतार

    theskumar/python-dotenv

    8,794GitHub पर देखें↗

    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
    GitHub पर देखें↗8,794
  • caarlos0/envcaarlos0 का अवतार

    caarlos0/env

    6,004GitHub पर देखें↗

    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
    GitHub पर देखें↗6,004
  • symfony/dotenvsymfony का अवतार

    symfony/dotenv

    3,790GitHub पर देखें↗

    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
    GitHub पर देखें↗3,790
Phpdotenv के सभी 30 विकल्प देखें→

अक्सर पूछे जाने वाले प्रश्न

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.

vlucas/phpdotenv की मुख्य विशेषताएं क्या हैं?

vlucas/phpdotenv की मुख्य विशेषताएं हैं: 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।

vlucas/phpdotenv के कुछ ओपन-सोर्स विकल्प क्या हैं?

vlucas/phpdotenv के ओपन-सोर्स विकल्पों में शामिल हैं: 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,…