vortex-php/config
Composer 安装命令:
composer require vortex-php/config
包简介
A simple config library to managing application config variables
关键字:
README 文档
README
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
.envfiles - 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-yamlfor YAML supportext-jsonfor JSON support
Installation
Install via Composer:
composer require vortex-php/config
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-20