chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use App\Application\Service\QrCodeService;
use App\Domain\QrCode\ValueObject\ErrorCorrectionLevel;
$qrCodeService = new QrCodeService();
// Einfache Verwendung
$svgContent = $qrCodeService->generateSvg('https://example.com');
file_put_contents('qr_code.svg', $svgContent);
echo "SVG-QR-Code erstellt: qr_code.svg\n";
// Mit benutzerdefinierten Einstellungen
$pngContent = $qrCodeService->generatePng(
'Hallo Welt!',
ErrorCorrectionLevel::H,
moduleSize: 6,
margin: 8
);
file_put_contents('qr_code.png', $pngContent);
echo "PNG-QR-Code erstellt: qr_code.png\n";
// Matrix direkt verwenden
$matrix = $qrCodeService->generateQrCode('Benutzerdefinierter QR-Code', ErrorCorrectionLevel::L);
echo "QR-Code Größe: " . $matrix->getSize() . "x" . $matrix->getSize() . "\n";
// Ausgabe der Matrix als Text (für Debugging)
echo "ASCII-QR-Code:\n";
echo $qrCodeService->generateAscii('https://example.com');