micheledef / qr-code-php
This package is abandoned and no longer maintained.
The author suggests using the micheledef/qr-code-php package instead.
Generate a qr code with PHP and Google Charts Infographics
v1.0.2
2023-03-07 10:29 UTC
Requires
- php: >=7.2
This package is auto-updated.
Last update: 2024-05-23 07:58:35 UTC
README
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?>" />