hassankhan/config
Lightweight PHP config loader (PHP 7.4+) for files or strings. Supports PHP, INI, XML, JSON, YAML (via Symfony Yaml), Properties and serialized formats. Load single/multiple files or directories, optional files, and get/set values with simple API.
Architecture fit: The package is a standalone config loader but introduces redundancy with Laravel's native config system (PHP files + caching). Best suited for specific external config sources (e.g., third-party YAML/JSON files from cloud storage) where Laravel's built-in system falls short. Not ideal as a full replacement due to Laravel's optimized caching and framework integration.
Integration feasibility: High for targeted use cases (e.g., loading non-PHP configs from external sources). Composer integration is trivial, but requires careful design to avoid conflicts with Laravel's config system. No native caching support means manual caching implementation would be needed for high-traffic scenarios.
Technical risk: Low-moderate. Key risks include: 1) Performance degradation from lack of caching (especially YAML at 5ms vs PHP's 1ms), 2) Potential conflicts if used alongside Laravel's config
How can I help you explore Laravel packages today?