<commit_before>yii2-settings
===================

[![Latest Stable Version](https://poser.pugx.org/lav45/yii2-settings/v/stable)](https://packagist.org/packages/lav45/yii2-settings)
[![License](https://poser.pugx.org/lav45/yii2-settings/license)](https://packagist.org/packages/lav45/yii2-settings)
[![Total Downloads](https://poser.pugx.org/lav45/yii2-settings/downloads)](https://packagist.org/packages/lav45/yii2-settings)
[![Build Status](https://travis-ci.org/LAV45/yii2-settings.svg?branch=master)](https://travis-ci.org/LAV45/yii2-settings)
[![Code Coverage](https://scrutinizer-ci.com/g/lav45/yii2-settings/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/lav45/yii2-settings/)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lav45/yii2-settings/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lav45/yii2-settings/)
[![Code Climate](https://codeclimate.com/github/LAV45/yii2-settings/badges/gpa.svg)](https://codeclimate.com/github/LAV45/yii2-settings)

This extension is very useful for storing any settings, for your application.

## Installation

The preferred way to install this extension through [composer](http://getcomposer.org/download/).

You can set the console

```
$ composer require "lav45/yii2-settings" --prefer-dist
```

or add

```
"lav45/yii2-settings": "^1.0"
```

in ```require``` section in `composer.json` file.

### Migrate

Apply with the console command:
```
~$ yii migrate/up --migrationPath=vendor/lav45/yii2-settings/migrations
```

## Component Setup

To use the Setting Component, you need to configure the components array in your application configuration:

```php
return [
    'components' => [
        'settings' => [
            'class' => 'lav45\settings\Settings',

            // DbStorage use as default storage
            // 'storage' => [<commit_msg>Fix last version<commit_after>yii2-settings
===================

[![Latest Stable Version](https://poser.pugx.org/lav45/yii2-settings/v/stable)](https://packagist.org/packages/lav45/yii2-settings)
[![License](https://poser.pugx.org/lav45/yii2-settings/license)](https://packagist.org/packages/lav45/yii2-settings)
[![Total Downloads](https://poser.pugx.org/lav45/yii2-settings/downloads)](https://packagist.org/packages/lav45/yii2-settings)
[![Build Status](https://travis-ci.org/LAV45/yii2-settings.svg?branch=master)](https://travis-ci.org/LAV45/yii2-settings)
[![Code Coverage](https://scrutinizer-ci.com/g/lav45/yii2-settings/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/lav45/yii2-settings/)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lav45/yii2-settings/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lav45/yii2-settings/)
[![Code Climate](https://codeclimate.com/github/LAV45/yii2-settings/badges/gpa.svg)](https://codeclimate.com/github/LAV45/yii2-settings)

This extension is very useful for storing any settings, for your application.

## Installation

The preferred way to install this extension through [composer](http://getcomposer.org/download/).

You can set the console

```
~$ composer require lav45/yii2-settings
```

or add

```
    "lav45/yii2-settings": "^1.1"
```

in ```require``` section in `composer.json` file.

### Migrate

Apply with the console command:
```
~$ yii migrate/up --migrationPath=vendor/lav45/yii2-settings/migrations
```

## Component Setup

To use the Setting Component, you need to configure the components array in your application configuration:

```php
return [
    'components' => [
        'settings' => [
            'class' => 'lav45\settings\Settings',

            // DbStorage use as default storage
            // 'storage' => [
{'fraction_non_alphanumeric': 0.18147138964577655, 'fraction_numerical': 0.030517711171662125, 'mean_word_length': 4.536953242835596, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 28, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3415101', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1268, 'n_words': 193}