vortex-php/config

A simple config library to managing application config variables

Maintainers

Package info

github.com/vortex-php/config

pkg:composer/vortex-php/config

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2025-11-20 07:45 UTC

This package is not auto-updated.

Last update: 2026-03-27 07:48:14 UTC


README

PHP Version License

A lightweight PHP configuration library for PHP, JSON, YAML, and .env files, supporting nested keys, strict mode, and memory-resident usage.
Designed to be Swoole-friendly for long-running processes.

Features

  • Load configuration from PHP, JSON, YAML, and .env files
  • Supports nested keys (database.connections.mysql.host)
  • Strict mode to throw exceptions on missing keys
  • Memory-resident, safe for Swoole long-running processes
  • PSR-12 / PHP 8.1+ ready
  • Lightweight and framework-agnostic

Requirements

  • PHP 8.1 or higher
  • Optional extensions:
    • ext-yaml for YAML support
    • ext-json for JSON support

Installation

Install via Composer:

composer require vortex-php/config