qmetrics.net

Phpdotenv

PHP library for loading variables from .env files

PHP dotenv reads a .env file and populates $_ENV and $_SERVER, with optional getenv support, so apps keep secrets out of code.

Overview

PHP dotenv is a Composer package that loads environment variables from a .env file into PHP’s superglobals. It follows the same general idea as the Ruby dotenv project and is meant for keeping credentials and deployment-specific settings out of application source.

Teams typically commit a .env.example with required keys and dummy or blank values while keeping the real .env local and out of version control. Loading is done through the Dotenv API in application bootstrap code, with options for alternate filenames, multiple searchable files, merge behavior, and encodings.

The loader supports nested variable references, quoting rules, comments, and both immutable and mutable modes that control whether existing environment values may be overwritten. Optional unsafe adapters can expose variables through getenv and putenv, though the docs discourage relying on those functions for thread-safety reasons.

Built-in validation can require variables to be set, non-empty, integers, booleans, or members of allowed sets, including regex checks. A parse API can turn file contents into an array without touching the live environment, which helps testing or preprocessing.

Key features

  • Loads .env into $_ENV and $_SERVER
  • Immutable and mutable modes
  • Nested variable interpolation
  • Quoted value and escape handling
  • Multi-file merge loading
  • Optional getenv support
  • Variable validation rules
  • Parse without loading

Use cases

  • Per-environment PHP configuration
  • Keeping secrets out of git
  • Shared .env.example onboarding
  • Validating required env vars
  • Apache, Nginx, or CLI PHP runs

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT