Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.03 KB

QRCode

Generate a qr code with PHP and Google Charts Infographics

Quick Start

git clone https://github.com/MicheleDeF/QRCode.git
cd QRCode
composer dump-autoload
composer run start-example

Install via Composer

composer require micheledef/qr-code-php

Example of use

<?php

require 'vendor/autoload.php';

use Micheledef\QrCodePhp\QRCode;

$qr = new QRCode();

$code = "Hello World";

$qrGet = $qr->getQrCode($code, 177, 177, "UTF-8", "H");

$qrPost = $qr->postQrCode($code, 177, 177, "UTF-8", "H");

?>

<!-- QR code generated with GET request -->
<img src="<?=$qrGet;?>" />

<!-- QR code generated with POST request-->
<img src="<?=$qrPost?>" />

Also read the related official documentation

or read the article on the blog