<commit_before>auth
=============

[![Build Status](https://travis-ci.org/infusephp/auth.svg?branch=master&style=flat)](https://travis-ci.org/infusephp/auth)
[![Coverage Status](https://coveralls.io/repos/infusephp/auth/badge.svg?style=flat)](https://coveralls.io/r/infusephp/auth)
[![Latest Stable Version](https://poser.pugx.org/infuse/auth/v/stable.svg?style=flat)](https://packagist.org/packages/infuse/auth)
[![Total Downloads](https://poser.pugx.org/infuse/auth/downloads.svg?style=flat)](https://packagist.org/packages/infuse/auth)
[![HHVM Status](http://hhvm.h4cc.de/badge/infuse/auth.svg?style=flat)](http://hhvm.h4cc.de/package/infuse/auth)

Auth module for Infuse Framework

## Installation

1. Install the package with [composer](http://getcomposer.org):

   ```
   composer require infuse/auth
   ```

2. Add the service to `services` in your app's configuration:

   ```php
   'services' => [
	   // ...
	   'auth' => 'App\Auth\Services\Auth'
	   // ...
   ]
   ```

3. (optional) Add the console command for helper tasks to `console.commands` in your app's configuration:

   ```php
   'console' => [
	   // ...
	   'commands' => [
		   // ...
		   'App\Auth\Console\ResetPasswordLinkCommand'
	   ]
   ]
   ```

4. (optional) Add the garbage collection scheduled job to `cron` in your app's configuration:

   ```php
   'cron' => [
      // ...
      [
         'id' => 'auth:garbageCollection',
         'class' => 'App\Auth\Jobs\GarbageCollection',
         'minute' => 30,
         'hour' => 1,
         'day' => 1
      ]
   ]
   ```

## Usage

You can create your own User model located at `App\Users\Models\User` for futher customization.<commit_msg>add migration setup to instructions<commit_after>auth
=============

[![Build Status](https://travis-ci.org/infusephp/auth.svg?branch=master&style=flat)](https://travis-ci.org/infusephp/auth)
[![Coverage Status](https://coveralls.io/repos/infusephp/auth/badge.svg?style=flat)](https://coveralls.io/r/infusephp/auth)
[![Latest Stable Version](https://poser.pugx.org/infuse/auth/v/stable.svg?style=flat)](https://packagist.org/packages/infuse/auth)
[![Total Downloads](https://poser.pugx.org/infuse/auth/downloads.svg?style=flat)](https://packagist.org/packages/infuse/auth)
[![HHVM Status](http://hhvm.h4cc.de/badge/infuse/auth.svg?style=flat)](http://hhvm.h4cc.de/package/infuse/auth)

Auth module for Infuse Framework

## Installation

1. Install the package with [composer](http://getcomposer.org):

   ```
   composer require infuse/auth
   ```

2. Add the service to `services` in your app's configuration:

   ```php
   'services' => [
	   // ...
	   'auth' => 'App\Auth\Services\Auth'
	   // ...
   ]
   ```

3. Add the migration to your app's configuration:

   ```php
   'modules' => [
      'migrations' => [
         // ...
         'Auth'
      ],
      'migrationPaths' => [
         // ...
         'Auth' => 'vendor/infuse/auth/src/migrations'
      ]
   ]
   ```

4. (optional) Add the console command for helper tasks to `console.commands` in your app's configuration:

   ```php
   'console' => [
	   // ...
	   'commands' => [
		   // ...
		   'App\Auth\Console\ResetPasswordLinkCommand'
	   ]
   ]
   ```

5. (optional) Add the garbage collection scheduled job to `cron` in your app's configuration:

   ```php
   'cron' => [
      // ...
      [
         'id' => 'auth:garbageCollection',
         'class' => 'App\Auth\Jobs\GarbageCollection',
         'minute' => 30,
         'hour' => 1,
         'day' => 1
      ]
   ]
   ```

## Usage

You can create your own User model located at `App\Users\Models\User` for futher customization.
{'fraction_non_alphanumeric': 0.18798235942668137, 'fraction_numerical': 0.005788313120176406, 'mean_word_length': 2.844279661016949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3646446', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1227, 'n_words': 218}