added class sessione and propagate and day off

This commit is contained in:
2025-04-05 21:01:29 +02:00
parent 92f4c1b8b6
commit 35e90c283e
32 changed files with 3382 additions and 350 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();
}