Initial commit

This commit is contained in:
2026-01-25 21:03:33 +01:00
commit 8d8e213f1c
2570 changed files with 479666 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/../../vendor/autoload.php';
use Endroid\QrCode\Builder\Builder;
use Endroid\QrCode\Writer\PngWriter;
try {
$builder = new Builder();
$result = $builder->build(
writer: new PngWriter(),
data: 'Test QR Code', // Sostituisci con il testo o URL che vuoi
size: 150,
margin: 10
);
$qr_code_filename = __DIR__ . '/test-qr.png';
$result->saveToFile($qr_code_filename);
echo "QR Code generato con successo! Controlla il file: $qr_code_filename";
} catch (Exception $e) {
echo "Errore: " . $e->getMessage();
}