<commit_before># ConfigLoader

Provide a simple interface to handle configuration values.

## Concepts

* Enviroment

A environment represents a directory into directory root.

* Config file

A config file is a pure php file that contains an array named $config with the specific scope values. Example:

```php
<?php // $configRoot . '/' . $environment . '/' . default.php file

$config['system_timezone'] = 'Americas/Santo_Domingo';

```

## installation
    php composer.phar require "jomisacu/configloader"

## Usage

Use this package require atleast the below steps

1. include 
```php
<?php

include "vendor/autoload.php";
<commit_msg>documentation improvements<commit_after># ConfigLoader

Provide a simple interface to handle configuration values.

## Concepts

### Enviroment

A environment represents a directory into directory root. 

By default the selected environment is ConfigLoader::ENV_PRODUCTION ("production"), to override this, you can put into config root directory a file named ENVIRONMENT.txt that contains a environment name, or, configure $_SERVER['ENVIRONMENT'] var through http server. For example, you can set this var on apache adding the line below:

```bash
# httpd.conf or .htaccess 
SetEnv ENVIRONMENT 'development'
```

### Config file

A config file is a pure php file that contains an array named $config with the specific scope values. Example:

```php
<?php // $configRoot . '/' . $environment . '/' . default.php file

$config['system_timezone'] = 'Americas/Santo_Domingo';

```

## installation
    php composer.phar require "jomisacu/configloader"

## Usage

Use this package require atleast the below steps

1. include 
```php
<?php

include "vendor/autoload.php";

{'fraction_non_alphanumeric': 0.09613130128956623, 'fraction_numerical': 0.0011723329425556857, 'mean_word_length': 4.542207792207792, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6357909', 'n_tokens_mistral': 502, 'n_tokens_neox': 479, 'n_words': 195}