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 1 year ago
JSON representation
QrWatermark is a versatile PHP library designed to generate high-quality QR codes with customizable watermarks.
- Host: GitHub
- URL: https://github.com/hlsxx/qrwatermark_php
- Owner: hlsxx
- License: mit
- Created: 2024-10-10T18:55:46.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T11:35:53.000Z (over 1 year ago)
- Last Synced: 2025-05-26T23:15:28.794Z (about 1 year ago)
- Topics: gradient, php, php8, qrcode, qrcode-generator, qrcode-watermark, qrcodes, watermark
- Language: PHP
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hlsxx QR Watermark

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