arcanedev-maroc / QrCode

QR Code Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QR Code Generation

This library helps you generate images containing a QR code.

By ARCANEDEV©

Build Status Version License

Contributing

If you have any suggestions or improvements feel free to create an issue or create a Pull Request.

Requirements

- PHP >= 5.4.0
- GD extension

Installation

QrCode should be installed using composer. The general composer instructions can be found on the composer website.

After that, just declare the qr-code dependency as follows:

"require" : {
    ...
    "arcanedev/qr-code": "dev-master"
}

Then, run composer.phar update and you should be good.

USAGE

<?php

include_once "vendor/autoload.php";

use Arcanedev\QrCode\QrCode;

$qrCode = new QrCode;
$qrCode->setText("I would love to change the world, but they won't give me the source code");
$qrCode->setSize(200);

echo $qrCode->image("image alt", ['class' => 'qr-code-img']);

Check the exemples folder to learn some tricks.

Laravel Version

Coming Soon

License

The QR Code Library is open-sourced software licensed under the MIT license

About

QR Code Generator

License:MIT License


Languages

Language:PHP 100.0%