<commit_before># Database backup provider for Laravel 5 applications

[![Latest Version](https://img.shields.io/github/release/freekmurze/laravel-backup.svg?style=flat-square)](https://github.com/freekmurze/laravel-backup/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/freekmurze/laravel-backup/master.svg?style=flat-square)](https://travis-ci.org/freekmurze/laravel-backup)
[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/3f243a38-a1c7-42f5-96c8-37526e807029.svg)](https://insight.sensiolabs.com/projects/3f243a38-a1c7-42f5-96c8-37526e807029)
[![Quality Score](https://img.shields.io/scrutinizer/g/freekmurze/laravel-backup.svg?style=flat-square)](https://scrutinizer-ci.com/g/freekmurze/laravel-backup)
[![Total Downloads](https://img.shields.io/packagist/dt/freekmurze/laravel-backup.svg?style=flat-square)](https://packagist.org/packages/freekmurze/laravel-backup)

This package makes a dump-file from a mySQL database in Laravel 5.

## Install

Install via Composer using:

``` bash
$ composer require spatie/laravel-backup
```

To publish the configuration run:

``` bash
$ php artisan vendor:publish --provider="Spatie\DatabaseBackup\DatabaseBackupServiceProvider"
```

## Usage

To generate a dump-file run:

``` bash
$ php artisan db:backup
```
<commit_msg>add installation instructions<commit_after># Database backup provider for Laravel 5 applications

[![Latest Version](https://img.shields.io/github/release/freekmurze/laravel-backup.svg?style=flat-square)](https://github.com/freekmurze/laravel-backup/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/freekmurze/laravel-backup/master.svg?style=flat-square)](https://travis-ci.org/freekmurze/laravel-backup)
[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/3f243a38-a1c7-42f5-96c8-37526e807029.svg)](https://insight.sensiolabs.com/projects/3f243a38-a1c7-42f5-96c8-37526e807029)
[![Quality Score](https://img.shields.io/scrutinizer/g/freekmurze/laravel-backup.svg?style=flat-square)](https://scrutinizer-ci.com/g/freekmurze/laravel-backup)
[![Total Downloads](https://img.shields.io/packagist/dt/freekmurze/laravel-backup.svg?style=flat-square)](https://packagist.org/packages/freekmurze/laravel-backup)

This package makes a dump-file from a mySQL database in Laravel 5.

## Install

Install via Composer using:

``` bash
$ composer require spatie/laravel-backup
```

You must also install this service provider.

```php

// config/app.php

'providers' => [
    ...
    'Spatie\DatabaseBackup\DatabaseBackupServiceProvider',
    ...
];
```

To publish the configuration run:

``` bash
$ php artisan vendor:publish --provider="Spatie\DatabaseBackup\DatabaseBackupServiceProvider"
```

## Usage

To generate a dump-file run:

``` bash
$ php artisan db:backup
```

{'fraction_non_alphanumeric': 0.16202616571620262, 'fraction_numerical': 0.03488762160348876, 'mean_word_length': 5.746606334841629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 22, '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': '7498080', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1063, 'n_words': 133}