Download the PHP package devoton/qrcode without Composer
On this page you can find all versions of the php package devoton/qrcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devoton/qrcode
More information about devoton/qrcode
Files in devoton/qrcode
Package qrcode
Short Description Open-source Laravel QR code generator with a native PHP engine for SVG, PNG and data URI output.
License MIT
Homepage https://github.com/otontraore/qrcode
Informations about the package qrcode
DevOton QR Code
Laravel package for generating QR codes with a native PHP engine.
It supports SVG, PNG, data URI output, a fluent builder, and Laravel container or facade usage.
Repository: https://github.com/otontraore/qrcode
Requirements
- PHP
^8.2 - Laravel
^11.0|^12.0 - GD extension for PNG output
Installation
Publish the config if you want to override defaults:
Quick start
Using the facade:
Using the fluent builder:
Output methods
Options
| Option | Type | Notes |
|---|---|---|
size |
int |
Final size in pixels. Must be greater than 0. |
margin |
int |
Quiet zone in modules. Must be 0 or more. |
encoding |
string |
Input encoding, for example UTF-8 or ISO-8859-1. |
error_correction |
string |
low, medium, quartile, or high. |
foreground |
string |
Foreground color as a 6-digit hex value. |
background |
string |
Background color as a 6-digit hex value. |
format |
string |
svg or png. Used by dataUri() and save(). |
Configuration
Published file: config/devoton-qrcode.php
Defaults inside the package:
Notes
- PNG rendering requires the PHP GD extension.
- The current engine focuses on byte mode.
- Colors currently accept 6-digit hexadecimal values.
Development
Run formatting and the package test suite before a release or pull request:
See CHANGELOG.md for release history and RELEASE.md for the release checklist.
All versions of qrcode with dependencies
illuminate/contracts Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0