Download the PHP package yoosuf/qr without Composer
On this page you can find all versions of the php package yoosuf/qr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qr
yoosuf/qr
Fast, extensible QR code generation for Laravel apps and automation workflows.
Generate standards-compliant QR payloads, style them for brand needs, and produce output through PHP APIs or CLI with a performance-oriented architecture.
Why this package
- Laravel-native integration with auto-discovery, facade, and helper.
- Pluggable style architecture for presets, custom modules, custom eyes, and custom drivers.
- Typed payload builders for URL, Wi-Fi, vCard, MECARD, email, SMS, geo, calendar event, WhatsApp, bitcoin, and raw text.
- Bacon-backed rendering with SVG, PNG, and EPS output options.
- Option merging that keeps defaults, profiles, driver config, and runtime overrides separate.
- Hot-path performance improvements through in-memory writer reuse and optional result caching.
Installation
Publish the configuration if needed.
Documentation
- CLI usage guide: docs/CLI.md
- Architecture guide: docs/ARCHITECTURE.md
- Product report (topics and descriptions): docs/REPORT.md
Best Fit Use Cases
- checkout and payment QR generation
- event ticket and check-in flows
- contact card and profile sharing
- Wi-Fi onboarding for venues and offices
- batch QR rendering in queues and CI pipelines
Quick Start
Typed payloads (all common QR content standards)
Pass raw strings, payload arrays, or QrPayload objects.
Supported payload type values:
raw,text,stringurl,linkphone,telsmsemail,mailtogeo,locationwifivcardmecardevent,veventwhatsapp,wabitcoin,btc
Add your own payload type without touching package internals:
Extending the design system
The package is built around two extension points:
- custom QR modules, such as rounded or branded module groups;
- custom QR eyes, such as circles, points, or fully bespoke finder patterns.
Register custom shapes through the manager and continue using the same rendering API.
Output formats
svgfor portable vector output.pngwhen theimagickextension is available.epsfor print-oriented workflows.
CLI generation
For full command reference and examples, see docs/CLI.md.
Generate QR codes directly from Artisan:
When using the default local disk, --path is relative to the disk root (storage/app).
Passing storage/app/... is also accepted and normalized automatically.
Generate with typed payload JSON:
Print output to terminal (SVG text by default):
Print as data URI:
Pass rendering options from CLI (--option can be repeated and supports nested keys):
Performance tuning
Enable package-level result caching for repeated payloads and options:
What is optimized:
- renderer/writer instances are reused in-memory for equivalent style options;
- error correction objects are reused in-memory;
- merged options are memoized in the manager;
- final rendered bytes can be cached through Laravel cache stores.
All versions of qr with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
bacon/bacon-qr-code Version ^3.0