Skip to content

v1.0.0-RC.5

Compare
Choose a tag to compare
@jamesgober jamesgober released this 06 Dec 00:04
· 42 commits to master since this release

Release Notes for 1.0.0-RC.5

The fifth release candidate of JG\Config raises the bar with groundbreaking improvements in performance, extensibility, and error handling. This release introduces dynamic custom parsers, robust parsing enhancements, and refined caching, ensuring the library remains a cornerstone for PHP developers seeking high-performance configuration management.


What's New in 1.0.0-RC.5?

  • Dynamic Custom Parser Support:

    • Introduced the ability to dynamically register and utilize custom parsers for extended file format support.
    • Enables seamless integration of project-specific parsers.
  • Parsing Optimizations:

    • Enhanced CONF file parsing using a regex-based approach, delivering faster and more accurate processing.
    • Improved support for complex configurations with better error handling and diagnostics.
  • Streamlined Flattening Options:

    • Added explicit control over flattening behavior via constructor flags, ensuring predictable and flexible configuration structures.
  • Non-UTF-8 Compatibility:

    • Addressed handling of non-UTF-8 encoded files, ensuring compatibility with diverse file encodings while maintaining robust error reporting.
  • Cache Enhancements:

    • Improved validation of cache structures for more reliable data retrieval.
    • Strengthened handling of cache invalidation and expiration scenarios.

Key Features

  • Multi-Format Parsing:

    • Load configurations from various formats, including CONF, INI, JSON, XML, YAML/YML, and PHP arrays.
  • Custom Parsers:

    • Extend functionality by dynamically adding support for new file formats with minimal effort.
  • Efficient Caching System:

    • Comprehensive methods to save, load, and delete cached configurations with built-in expiration handling.
  • Configurable Flattening:

    • Support for grouped or flattened key structures with enhanced customization options.
  • Error Management:

    • Improved exception classes for precise error reporting (ConfigException, ConfigParseException, InvalidParserException).
  • Thorough Testing:

    • Rigorous unit tests with PHPUnit ensure the library’s robustness and reliability under high-load scenarios.

Installation

Install via Composer:

composer require jamesgober/config

Documentation

Dive into the Full Documentation to explore:

  • Usage examples for loading and managing configurations.
  • Advanced techniques for leveraging grouped and flattened keys.
  • Contribution and customization guides.

Changelog

For the detailed list of updates, refer to the CHANGELOG.


Feedback and Contributions

Your feedback helps shape JG\Config! Report issues or suggest improvements on the GitHub Issues page. Contributions are always welcome—review the contribution guidelines in the repository.