<commit_before># hD.arr

This module adds extra functionality to Kohana for arrays and configuration.

## Arrays

 - Place a value at a specific point in your array
 - Place or move a key with a value at a specific point in your array
 - Flatten an array (keys become paths to the original)
 - Unset a value based on a path
 - Partition an array

## Config

 - Export a configuration set to a file

## Session

 - Retrieve a value stored in session the same way as Arr::path() does

##Instalation

### Place the files in your modules directory.

#### As a Git submodule:

```bash
git clone git://github.com/happyDemon/arr.git modules/arr
```
#### As a [Composer dependency](http://getcomposer.org)

```javascript
{
	"require": {
		"php": ">=5.4.0",
		"composer/installers": "*",
		"happyDemon/arr":"*"
	}
}
```

### Activate the module in `bootstrap.php`.

```php
<?php
Kohana::modules(array(
	...
	'arr' => MODPATH.'arr',
));
```

# Documentation

The code is mostly commented, a userguide is on its way

<commit_msg>added GitTip badge<commit_after># hD.arr

This module adds extra functionality to Kohana for arrays and configuration.

## Arrays

 - Place a value at a specific point in your array
 - Place or move a key with a value at a specific point in your array
 - Flatten an array (keys become paths to the original)
 - Unset a value based on a path
 - Partition an array

## Config

 - Export a configuration set to a file

## Session

 - Retrieve a value stored in session the same way as Arr::path() does

##Instalation

### Place the files in your modules directory.

#### As a Git submodule:

```bash
git clone git://github.com/happyDemon/arr.git modules/arr
```
#### As a [Composer dependency](http://getcomposer.org)

```javascript
{
	"require": {
		"php": ">=5.4.0",
		"composer/installers": "*",
		"happyDemon/arr":"*"
	}
}
```

### Activate the module in `bootstrap.php`.

```php
<?php
Kohana::modules(array(
	...
	'arr' => MODPATH.'arr',
));
```

# Documentation

The code is mostly commented, a userguide is on its way

[![Gittip Badge](http://img.shields.io/gittip/happyDemon.svg)](https://www.gittip.com/happyDemon/ "Gittip donations")
{'fraction_non_alphanumeric': 0.1371640407784986, 'fraction_numerical': 0.0027803521779425394, 'mean_word_length': 3.745054945054945, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '5138381', 'n_tokens_mistral': 727, 'n_tokens_neox': 690, 'n_words': 262}