Skip to the content.

Installation

← Back to index

Requirements

Install via Composer

composer require aicrion/qrcode

The package automatically pulls in its two core dependencies:

Verifying the Installation

<?php

require __DIR__ . '/vendor/autoload.php';

use Aicrion\QRCode\QRCode;

$qr = QRCode::make();
echo $qr->generateDataUri('Hello, Aicrion!');

If this prints a data:image/png;base64,... string, the library is correctly installed.

Next: Quick Start