<commit_before>Simple QrCode
========================

[![Build Status](https://travis-ci.org/SimpleSoftwareIO/simple-qrcode.svg?branch=master)](https://travis-ci.org/SimpleSoftwareIO/simple-qrcode)
[![Latest Stable Version](https://poser.pugx.org/simplesoftwareio/simple-qrcode/v/stable.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![Latest Unstable Version](https://poser.pugx.org/simplesoftwareio/simple-qrcode/v/unstable.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![License](https://poser.pugx.org/simplesoftwareio/simple-qrcode/license.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![Total Downloads](https://poser.pugx.org/simplesoftwareio/simple-qrcode/downloads.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)

- [Introduction](#introduction)
- [Configuration](#configuration)
- [Simple Ideas](#ideas)
- [Usage](#usage)
- [Common QrCode Usage](#common-usage)

<a name="introduction"></a>
## Introduction
Simple QrCode is an easy to use wrapper for the popular Laravel framework based on the great work provided by [Bacon/BaconQrCode](https://github.com/Bacon/BaconQrCode).  We created an interface that is familiar and easy to install for Laravel users.

<a name="configuration"></a>
## Configuration

#### Composer

First, add the Simple QrCode package to your `require` in your `composer.json` file:

	"require": {
        "simplesoftwareio/simple-qrcode": "0.0.3-beta"
    }

>NOTE:  If you are not running `"minimum-stability": "dev"` you will need to add `"bacon/bacon-qr-code": "dev-master"` to your `composer.json` file as well.  This is due to an unstable dependency.  We are currently working with the dependency owner to correct this problem.

    "require": {
        "simplesoftwareio/simple-qrcode": "0.0.3-beta",
        "bacon/bacon-qr-code": "dev-master"
    },
    
Next, run the `composer update` command.

#### Service Provider

After that, register the `SimpleSoftwareIO\QrCode\QrCodeServiceProvider` in your `app` configuration file within the `providers` array.

#### Aliases

Finally, register the `'QrCode' => 'SimpleSoftwareIO\QrCode\Facades\QrCode'` in your `app` configuration file within the `aliases` array.

<a name="ideas"></a>
## Simple Ideas

#### Print View

One of the main items that we use this package for is to have QrCodes in all of our print views.  This allows our customers to return to the original page after it is printed by simply scanning the code.  We achieved this by adding the following into our footer.blade.php file.

    <div class="visible-print text-center">
        {{ QrCode::size(100)->generate(Request::url()); }}
        <p>Scan me to return to the original page.</p>
    </div>
<commit_msg>Add file path for app.php config<commit_after>Simple QrCode
========================

[![Build Status](https://travis-ci.org/SimpleSoftwareIO/simple-qrcode.svg?branch=master)](https://travis-ci.org/SimpleSoftwareIO/simple-qrcode)
[![Latest Stable Version](https://poser.pugx.org/simplesoftwareio/simple-qrcode/v/stable.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![Latest Unstable Version](https://poser.pugx.org/simplesoftwareio/simple-qrcode/v/unstable.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![License](https://poser.pugx.org/simplesoftwareio/simple-qrcode/license.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[![Total Downloads](https://poser.pugx.org/simplesoftwareio/simple-qrcode/downloads.svg)](https://packagist.org/packages/simplesoftwareio/simple-qrcode)

- [Introduction](#introduction)
- [Configuration](#configuration)
- [Simple Ideas](#ideas)
- [Usage](#usage)
- [Common QrCode Usage](#common-usage)

<a name="introduction"></a>
## Introduction
Simple QrCode is an easy to use wrapper for the popular Laravel framework based on the great work provided by [Bacon/BaconQrCode](https://github.com/Bacon/BaconQrCode).  We created an interface that is familiar and easy to install for Laravel users.

<a name="configuration"></a>
## Configuration

#### Composer

First, add the Simple QrCode package to your `require` in your `composer.json` file:

	"require": {
        "simplesoftwareio/simple-qrcode": "0.0.3-beta"
    }

>NOTE:  If you are not running `"minimum-stability": "dev"` you will need to add `"bacon/bacon-qr-code": "dev-master"` to your `composer.json` file as well.  This is due to an unstable dependency.  We are currently working with the dependency owner to correct this problem.

    "require": {
        "simplesoftwareio/simple-qrcode": "0.0.3-beta",
        "bacon/bacon-qr-code": "dev-master"
    },
    
Next, run the `composer update` command.

#### Service Provider

After that, register the `SimpleSoftwareIO\QrCode\QrCodeServiceProvider` in your `app/conifg/app.cphp` configuration file within the `providers` array.

#### Aliases

Finally, register the `'QrCode' => 'SimpleSoftwareIO\QrCode\Facades\QrCode'` in your `app/config/app.php` configuration file within the `aliases` array.

<a name="ideas"></a>
## Simple Ideas

#### Print View

One of the main items that we use this package for is to have QrCodes in all of our print views.  This allows our customers to return to the original page after it is printed by simply scanning the code.  We achieved this by adding the following into our footer.blade.php file.

    <div class="visible-print text-center">
        {{ QrCode::size(100)->generate(Request::url()); }}
        <p>Scan me to return to the original page.</p>
    </div>

{'fraction_non_alphanumeric': 0.1446280991735537, 'fraction_numerical': 0.0032339202299676607, 'mean_word_length': 4.7097435897435895, 'pattern_counts': {'":': 14, '<': 23, '<?xml version=': 0, '>': 29, 'https://': 22, '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': '1127701', 'n_tokens_mistral': 1823, 'n_tokens_neox': 1734, 'n_words': 467}