hlsxx/qrwatermark

There is no license information available for the latest version (1.1.2) of this package.

A library to generate QR codes with watermarks.

1.1.2 2024-12-11 10:47 UTC

This package is not auto-updated.

Last update: 2025-07-09 13:41:25 UTC


README

QR Code

A library to generate QR codes with watermarks.

Downloads

You can download the latest version of the PHP extension here:

Or check the repository:

Installation

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");