Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hlsxx/qrwatermark_php
- Owner: hlsxx
- License: mit
- Created: 2024-10-10T18:55:46.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-15T11:25:23.000Z (3 months ago)
- Last Synced: 2024-10-17T06:44:19.970Z (3 months ago)
- Topics: gradient, php, php8, qrcode, qrcode-generator, qrcode-watermark, qrcodes, watermark
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
```