Skip to content

1.0.0-RC.3

Compare
Choose a tag to compare
@jamesgober jamesgober released this 04 Dec 02:44
· 60 commits to master since this release

Release Notes for 1.0.0-RC.3

The third release candidate of JG\Config refines performance improves consistency, and addresses key design challenges to solidify this robust PHP configuration library. With significant updates to core functionality and added support for new use cases, this release enhances the developer experience while ensuring backward compatibility.


What's New in 1.0.0-RC.3?

  • Revamped load Method:
    • Enhanced key-flattening logic for grouped and nested configurations.
    • Optimized handling of key conflicts with overwrite functionality.
  • Improved add and delete Methods:
    • Simplified group updates while ensuring data integrity.
    • Streamlined deletion of groups and their associated keys.
  • New flattenArray Method:
    • Efficiently processes nested arrays into flattened configurations with structured group mappings.

Key Features

  • Supported Formats:
    • CONF, INI, JSON, XML, YAML/YML, and PHP arrays.
  • Custom Parsers:
    • Extend functionality by adding support for additional formats.
  • Comprehensive API:
    • Load configurations from files or directories.
    • Retrieve, add, update, and delete configuration values.
    • Support for both grouped and flattened keys with intuitive handling.
  • Error Handling:
    • Custom exceptions (ConfigException, ConfigParseException, InvalidParserException) for better debugging and runtime safety.
  • Reliability:
    • Fully tested with PHPUnit to ensure robust and predictable behavior.

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.