Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hlsxx/qrwatermark_php

QrWatermark is a versatile PHP library designed to generate high-quality QR codes with customizable watermarks.
https://github.com/hlsxx/qrwatermark_php

gradient php php8 qrcode qrcode-generator qrcode-watermark qrcodes watermark

Last synced: about 2 months ago
JSON representation

QrWatermark is a versatile PHP library designed to generate high-quality QR codes with customizable watermarks.

Awesome Lists containing this project

README

        

# Hlsxx QR Watermark

![QR Code](https://github.com/hlsxx/qrwatermark_php/blob/master/imgs/custom.png)

A library to generate QR codes with watermarks.

## Downloads

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

- [libqrwatermark.so](https://github.com/hlsxx/qrwatermark_php_extension/releases/tag/v1.0.1) - Version 1.0.1

## Installation

You can install this library using Composer:

```bash
composer require hlsxx/qrwatermark
```

```php
// 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");
```