A library to generate QR codes with watermarks.
You can download the latest version of the PHP extension here:
- libqrwatermark.so - Version 1.0.1
You can install this library using Composer:
composer require hlsxx/qrwatermark
// Custom image config
$imageConfig = (new ImageConfigBuilder())
// ->colorGradient([255, 255, 255], [0, 0, 0]) // Custom gradient
->color([72, 76, 137])
->isAutoGradientEnabled()
->build();
// Custom logo config
$logoConfig = (new LogoConfigBuilder())
->width(70)
->height(70)
->build();
$qrw = (new QrWatermark("Hello from PHP custom"))
->logo("imgs/php_logo.png")
->logoConfig($logoConfig)
->imageConfig($imageConfig);
$qrw->saveAsImage("imgs/custom.png");