Download the PHP package akira/laravel-qrcode without Composer
On this page you can find all versions of the php package akira/laravel-qrcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-qrcode
A clean, modern, and easy-to-use QR code generator for Laravel applications. Built with the Action Pattern, Value Objects, and full type safety.
Features
- Multiple output formats (PNG, SVG, EPS, WebP, PDF)
- Highly customizable (colors, gradients, styles, sizes)
- Specialized data types (WiFi, Email, vCard, Calendar, Phone, SMS, Geo, Bitcoin, Ethereum, Litecoin)
- Logo/image merging support (from a file path or string content)
- Built-in cache-backed generation and batch generation
- Artisan command (
qrcode:generate) with CSV batch mode - Type-safe with PHP 8.4+
- PHPStan Level 9 compliant with 100% type coverage
- Comprehensive test coverage
Requirements
- PHP 8.4+
- GD extension
- Imagick extension for PNG, WebP, and PDF output
- Laravel 12.0+
Installation
Install via Composer:
Optionally, publish the configuration:
Quick Start
Documentation
Browse the full documentation in https://packages.akira-io.com/packages/laravel-qrcode
Highlights: Command Line
Available Data Types
| Type | Description | Example |
|---|---|---|
| WiFi | Network credentials | QrCode::wifi(['ssid' => 'Network', 'password' => 'pass']) |
| mailto links | QrCode::email('[email protected]', 'Subject', 'Body') |
|
| vCard | Contact cards | QrCode::vcard(['fullName' => 'Jane Doe']) |
| Calendar | VEVENT calendar entries | QrCode::ical(['summary' => 'Meeting', 'startsAt' => '2026-06-01 10:00:00 UTC', 'endsAt' => '2026-06-01 11:00:00 UTC']) |
| Phone | Direct dial | QrCode::phone('+1234567890') |
| SMS | Pre-filled message | QrCode::sms('+1234567890', 'Hello') |
| Geo | GPS coordinates | QrCode::geo(37.7749, -122.4194, 'San Francisco') |
| Bitcoin | Payment address | QrCode::bitcoin('address', 0.001, ['label' => 'Donation']) |
| Ethereum | Payment address | QrCode::ethereum('0x...', '1000000000000000000', ['chainId' => 1]) |
| Litecoin | Payment address | QrCode::litecoin('address', 1.25, ['label' => 'Donation']) |
Customization Options
| Option | Description | Values |
|---|---|---|
| Size | Dimensions in pixels | size(300) |
| Colors | Foreground/background | color(r, g, b), backgroundColor(r, g, b) |
| Gradients | Color transitions | gradient(r1, g1, b1, r2, g2, b2, 'type') |
| Styles | Module shapes | style('square\|dot\|round', 0-1) |
| Eyes | Pattern styles | eye('square\|circle'), eyeColor(...) |
| Error Correction | Data recovery | errorCorrection('L\|M\|Q\|H') |
| Formats | Output type | format('png\|svg\|eps\|webp\|pdf') |
| Logo | Image merging | merge('/path/to/logo.png', 0.2) |
Usage Examples
In Blade Templates
API Response
Download Response
With Logo
Testing
Architecture
This package is built with:
- Action Pattern - Single-responsibility business logic
- Value Objects - Immutable, validated data structures
- Dependency Injection - Laravel IoC container
- Type Safety - PHP 8.4+ with readonly classes
- SOLID Principles - Clean, maintainable code
See Architecture Documentation for details.
Contributing
Contributions are welcome! Please see Contributing Guide for details.
Security
If you discover any security issues, please email [email protected] instead of using the issue tracker.
Credits
- Kidiatoliny
- Built with BaconQrCode
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Links
- Website
- Changelog
- Issue Tracker
- Packagist
All versions of laravel-qrcode with dependencies
ext-gd Version *
ext-imagick Version *
bacon/bacon-qr-code Version ^3.0
illuminate/contracts Version ^12.0 | ^13.0
illuminate/support Version ^12.0 | ^13.0