webpatser/qr-code

Modern QR Code Generator for PHP - Support for multiple output formats and QR code types

v1.0.1 2025-09-11 14:10 UTC

This package is auto-updated.

Last update: 2025-09-12 08:36:54 UTC


README

Total Downloads PHP Version License

Modern PHP QR Code library with 3300x performance boost, multiple formats, and 11 QR code types. Restored from deleted original project.

Installation

composer require webpatser/qr-code

Requirements: PHP 8.2+ (GD extension optional for PNG/JPEG generation)

Quick Start

use QR_Code\QR_Code;

// Generate a simple QR code as PNG
$result = QR_Code::png('Hello World!', 'qrcode.png');

// Generate SVG
QR_Code::svg('Hello World!', 'qrcode.svg');

// Get as base64 data URL (no file)
$dataUrl = QR_Code::png('Hello World!');
echo $dataUrl; // data:image/png;base64,...

Documentation

For complete documentation, examples, and API reference, visit:

https://documentation.downsized.nl/qr-code

License

MIT License.