home
/
zktecojo
/
public_html
/
vendor
/
simplesoftwareio
/
simple-qrcode
/
src
/
SimpleSoftwareIO
/
QrCode
➕ New
📤 Upload
✎ Editing:
QrCodeInterface.php
← Back
<?php namespace SimpleSoftwareIO\QrCode; /** * Simple Laravel QrCode Generator * A simple wrapper for the popular BaconQrCode made for Laravel. * * @link http://www.simplesoftware.io * @author SimpleSoftware support@simplesoftware.io * */ interface QrCodeInterface { /** * Generates a QrCode * * @param string $text The text to be converted into a QrCode * @param null|string $filename The filename and path to save the QrCode file * @return string|void Returns a QrCode string depending on the format, or saves to a file. */ public function generate($text, $filename = null); /** * Switches the format of the outputted QrCode or defaults to SVG * * @param string $format * @return $this */ public function format($format); /** * Changes the size of the QrCode * * @param int $pixels The size of the QrCode in pixels * @return $this */ public function size($pixels); /** * Changes the foreground color of a QrCode * * @param int $red * @param int $green * @param int $blue * @return $this */ public function color($red, $green, $blue); /** * Changes the background color of a QrCode * * @param int $red * @param int $green * @param int $blue * @return $this */ public function backgroundColor($red, $green, $blue); /** * Changes the error correction level of a QrCode * * @param string $level Desired error correction level. L = 7% M = 15% Q = 25% H = 30% * @return $this */ public function errorCorrection($level); /** * Creates a margin around the QrCode * * @param int $margin The desired margin in pixels around the QrCode * @return $this */ public function margin($margin); /** * Sets the Encoding mode. * * @param string $encoding * @return $this */ public function encoding($encoding); }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel