Download the PHP package chapdel/qr-code without Composer
On this page you can find all versions of the php package chapdel/qr-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qr-code
Chapdel QR Code Styling
A powerful PHP library for generating styled QR codes with support for:
- 🎨 SVG & Raster (PNG, JPG, GIF) Output
- 🌈 Gradients (Linear & Radial)
- 🔴 Custom Dot Styles (Rounded, Classy, Classy-Rounded, Dots, Square)
- 🖼️ Logo Integration (Centered images with background clearing)
- 🎭 Predefined Themes (Facebook, Organic, Neon, etc.)
- 🔧 Custom Renderers (Draw your own shapes via PHP closures)
- ✨ Animated GIFs (Create rotating gradient animations)
Installation
Note: The imagick extension is recommended for high-quality raster output (PNG/JPG/GIF) and custom shapes in raster mode. GD is used as a fallback for basic squares.
Usage
Basic Example
Advanced Styling with Gradients
Using Helpers for Content
Easily generate special content like WiFi, vCard, or SMS without knowing the raw syntax.
Applying Themes
Apply professional styles instantly using predefined themes.
Custom Shapes (Advanced)
Define your own dot renderer using a Closure. This allows you to draw any SVG path for the QR modules.
Animated GIF
Generate an animated QR code (requires Imagick).
Supported Options
| Option Category | Key Features |
|---|---|
dotsOptions |
Types: square, dots, rounded, extra-rounded, classy, classy-rounded, custom. Gradient support. |
cornersSquareOptions |
Types: square, dot, extra-rounded, none. Separate colors/gradients. |
cornersDotOptions |
Types: square, dot. Separate colors/gradients. |
backgroundOptions |
Color, Gradient, Rounding (border-radius). |
imageOptions |
hideBackgroundDots (clears dots behind logo), imageSize, margin. |
qrOptions |
typeNumber (Version 0-40), errorCorrectionLevel (L, M, Q, H). |
Requirements
- PHP 8.2+
ext-gd(Standard fallback)ext-imagick(Recommended for advanced raster features)
License
MIT