Download the PHP package mojahed/eduplusqr without Composer
On this page you can find all versions of the php package mojahed/eduplusqr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mojahed/eduplusqr
More information about mojahed/eduplusqr
Files in mojahed/eduplusqr
Package eduplusqr
Short Description EduplusQR - Fast QR Code Generator PHP SDK with Go binary backend.
License MIT
Informations about the package eduplusqr
EduplusQR PHP SDK
EduplusQR is a lightweight, high-performance PHP SDK for generating QR codes using a fast Go binary backend. It generates PNG QR codes from plain text or JSON-encoded strings with zero external PHP dependencies.
Features
- Lightning Fast: Powered by optimized Go binary
- Zero PHP Dependencies: No GD, ImageMagick, or other extensions required
- Cross-Platform: Works on Linux (amd64/arm64), macOS (amd64/arm64), and Windows
- Fluent API: Clean, chainable method syntax
- Flexible Output: Save to file, return binary data, or get base64 encoded
- Customizable: Configure size, error correction level, and margins
- JSON Support: Perfect for encoding structured data
Installation
Install via Composer:
Quick Start
Usage Examples
1. Basic QR Code Generation
2. JSON Data QR Code
3. Payment QR Code
4. Get Base64 Encoded QR Code
5. Get Binary Data
API Methods
create()
Create a new EduplusQR instance.
text($text)
Set the text or JSON data to encode in the QR code.
output($path)
Set the output file path. Directory will be created automatically if it doesn't exist.
size($pixels)
Set the QR code size in pixels (default: 256).
errorCorrection($level)
Set error correction level: 'L' (Low), 'M' (Medium), 'Q' (Quartile), 'H' (High). Default: 'M'.
margin($pixels)
Set border margin in pixels (default: 0 for no margin).
generate()
Generate the QR code and save to file. Returns true on success, false on failure.
generateAndReturn()
Generate the QR code and return binary PNG data.
generateBase64()
Generate the QR code and return base64 encoded string.
quick($text, $output, $size = 256)
Static method for quick QR code generation.
$errors
Array containing error messages from the last operation.
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
| text | string | required | Text or JSON to encode |
| output | string | required | Output file path |
| size | int | 256 | QR code size in pixels |
| errorCorrection | string | 'M' | Error correction: L, M, Q, H |
| margin | int | 0 | Border margin in pixels |
Error Correction Levels
- L (Low): ~7% error recovery
- M (Medium): ~15% error recovery (default)
- Q (Quartile): ~25% error recovery
- H (High): ~30% error recovery
Higher levels create more complex QR codes but are more resilient to damage.
Requirements
- PHP 7.4 or higher
- Linux (amd64/arm64), macOS (amd64/arm64), or Windows (amd64)
- No PHP extensions required
Platform Support
The package automatically detects your platform and uses the appropriate binary:
- Linux x86_64 (amd64)
- Linux ARM64 (aarch64)
- macOS Intel (amd64)
- macOS Apple Silicon (arm64)
- Windows x86_64 (amd64)
Performance
EduplusQR is optimized for high-volume generation:
- Generates QR codes in milliseconds
- Minimal memory footprint
- No PHP extension dependencies
- Production-ready for server environments
Author
Md Mojahedul Islam
- Email: [email protected]
- Website: https://md-mojahed.github.io
License
MIT License - see LICENSE file for details
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.