<commit_before># Solution10\Config

A super simple configuration loader / reader that focusses on being light and fast
without losing required functionality.

## Contents

- [Installation](#installation)
- [Config Format](#config-format)
- [Config Locations](#config-locations)
- [Reading Config](#reading-config)
    - [Overwriting](#overwriting)
    - [Default Values](#default-values)
- [Requiring Config Files](#requiring-config-files)
- [Exceptions](#exceptions)

## Installation

Installation is via composer, either in composer.json:

```json
{
    "require" {
        "solution10/config": "~2.0"
    }
}
```

Or even better, through the command line

```sh
$ composer require solution10/config
```

## Config Format

Configuration files are in PHP format and simply return an array:

```php
<?php

return array(
    'posts_per_page' => 20,
    'cache' => array(
        'latest_posts' => 30,
        'popular_posts' => 60,
    ),
    'api_key' => '<KEY>',
);
```

Being PHP files, you can use anything as config values and even have dynamically<commit_msg>Fixing tiny documentation problem.<commit_after># Solution10\Config

A super simple configuration loader / reader that focusses on being light and fast
without losing required functionality.

## Contents

- [Installation](#installation)
- [Config Format](#config-format)
- [Config Locations](#config-locations)
- [Reading Config](#reading-config)
    - [Overwriting](#overwriting)
    - [Default Values](#default-values)
- [Requiring Config Files](#requiring-config-files)
- [Exceptions](#exceptions)

## Installation

Installation is via composer, either in composer.json:

```json
{
    "require": {
        "solution10/config": "~2.0"
    }
}
```

Or even better, through the command line

```sh
$ composer require solution10/config
```

## Config Format

Configuration files are in PHP format and simply return an array:

```php
<?php

return array(
    'posts_per_page' => 20,
    'cache' => array(
        'latest_posts' => 30,
        'popular_posts' => 60,
    ),
    'api_key' => '<KEY>',
);
```

Being PHP files, you can use anything as config values and even have dynamically
{'fraction_non_alphanumeric': 0.13395348837209303, 'fraction_numerical': 0.013023255813953489, 'mean_word_length': 3.967667436489607, 'pattern_counts': {'":': 3, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2521660', 'n_tokens_mistral': 689, 'n_tokens_neox': 624, 'n_words': 198}