qmetrics.net

PHP dotenv

PHP library for loading variables from .env files

Libraries & SDKsDesktop/CLI app

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
AI Assisted CodingDesktop/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
Libraries & SDKsDesktop/CLI app

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

★ 198.7k⟳ 21 days agoMIT
Libraries & SDKsDesktop/CLI app

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

★ 154.2k⟳ yesterdayApache-2.0

Taste Skill

Agent skill for designed company sites and browser QA

Taste Skill packages art direction, asset scripts, and headless browser checks so coding agents produce company websites with consistent layout, imagery, and copy rules.

★ 122.3k⟳ yesterdayMIT
AI Assisted CodingDesktop/CLI app