<commit_before># Yii2 DB manager

Database Backup and Restore functionality

<img src="screenshot.png">

## Installation

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

Either run

```
composer require beaten-sect0r/yii2-db-manager "*"
```

or add

```
"composer require beaten-sect0r/yii2-db-manager": "*"
```

to the require section of your `composer.json` file.


## Configuration

Once the extension is installed, simply add it in your config by:

Basic ```config/web.php```

Advanced ```backend/config/main.php```

```php
    'modules' => [
        'db-manager' => [
            'class' => 'bs\dbManager\Module',
            'dsn' => $config['components']['db']['dsn'],
            'username' => $config['components']['db']['username'],
            'password' => $<PASSWORD>['<PASSWORD>']['db']['password'],
            'tablePrefix' => $config['components']['db']['tablePrefix'],
            // create a directory for the dumps
            'path' => Yii::$app->basePath . '/backup/', // basic
            //'path' => Yii::$app->basePath . '/../backup/', // advanced
        ],
    ],
```

Make sure you create a writable directory named backup on app root directory.

## Usage

Pretty url's ```/db-manager```

No pretty url's ```index.php?r=db-manager```
<commit_msg>исправил опечатку<commit_after># Yii2 DB manager

Database Backup and Restore functionality

<img src="screenshot.png">

## Installation

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

Either run

```
composer require beaten-sect0r/yii2-db-manager "*"
```

or add

```
"beaten-sect0r/yii2-db-manager": "*"
```

to the require section of your `composer.json` file.


## Configuration

Once the extension is installed, simply add it in your config by:

Basic ```config/web.php```

Advanced ```backend/config/main.php```

```php
    'modules' => [
        'db-manager' => [
            'class' => 'bs\dbManager\Module',
            'dsn' => $config['components']['db']['dsn'],
            'username' => $config['components']['db']['username'],
            'password' => $config['components']['db']['password'],
            'tablePrefix' => $config['components']['db']['tablePrefix'],
            // create a directory for the dumps
            'path' => Yii::$app->basePath . '/backup/', // basic
            //'path' => Yii::$app->basePath . '/../backup/', // advanced
        ],
    ],
```

Make sure you create a writable directory named backup on app root directory.

## Usage

Pretty url's ```/db-manager```

No pretty url's ```index.php?r=db-manager```

{'fraction_non_alphanumeric': 0.1856763925729443, 'fraction_numerical': 0.0037893141341417205, 'mean_word_length': 3.1121495327102804, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6376429', 'n_tokens_mistral': 825, 'n_tokens_neox': 801, 'n_words': 209}