What's New in 1.0.0?
-
Stable Release:
- Finalized and thoroughly tested core features for stable and reliable performance.
-
Enhanced Parser Support:
- Out-of-the-box support for multiple formats: JSON, YAML/YML, XML, INI, PHP arrays, and CONF files.
- Seamless custom parser integration for additional file formats.
-
Optimized Caching Mechanisms:
- Save, load, and manage configuration caches with robust expiration handling.
- Enhanced cache validation for fault-tolerant data retrieval.
-
Advanced Flattening Options:
- Control hierarchical vs. flattened key structures with flexible settings.
-
Improved Error Handling:
- Comprehensive error and exception management for smooth debugging and better runtime reliability.
- User-friendly diagnostics for configuration and parser issues.
-
Performance and Efficiency:
- Refined logic for faster file parsing and reduced resource overhead.
- Optimized handling of deeply nested configurations with configurable depth limits.
-
Extensibility:
- Designed for easy extension and modification, adhering to S.O.L.I.D principles.
- Modular architecture to meet the demands of modern PHP projects.
Key Features
-
Multi-Format Parsing:
- Effortlessly handle JSON, YAML, XML, INI, PHP arrays, CONF files, and more.
-
Dynamic Parsers:
- Add custom parsers dynamically for unique or project-specific formats.
-
Caching Made Easy:
- Manage configurations with built-in caching for better performance and faster access.
-
Error-Resilient:
- Advanced error handling to ensure stability under challenging scenarios.
-
Streamlined API:
- A simple yet powerful API designed to minimize overhead while maximizing usability.
-
Thorough Testing:
- Verified with comprehensive PHPUnit tests to ensure stability and reliability.
Installation
Install via Composer:
composer require jamesgober/config
Documentation
Explore the Full Documentationfor:
- Quick start guides and examples.
- Advanced features like custom parsers and caching.
- Insights into the library's modular design and extensibility.
Changelog
For the detailed list of updates, refer to the CHANGELOG.
Feedback and Contributions
Your feedback helps shape the future of JG\Config! Report issues or suggest features on the GitHub Issues page. Contributions are encouraged—please see our contribution guidelines.