QRCode Monkey is one of the most popular free online qr code generators with millions of already created QR codes. The high resolution of the QR codes and the powerful design options make it one of the best free QR code generators on the web that can be used for commercial and print purposes.
- Endless lifetime with unlimited scans
- High resolution QR Codes for Print
- QR Codes with Logo
- QR Code Vector Formats
- Custom Design and Colors
- Free for commercial usage
- You can install the package via composer:
composer require prgayman/laravel-qrcodemonkey
- Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [
// ...
Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider::class,
];
- You should publish the config/qrcode_monkey.php config file with:
php artisan vendor:publish --provider="Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider"
use Prgayman\QRCodeMonkey\QRCode\CustomeGenerate;
$generate = new CustomeGenerate();
$qrcode = $generate->setType("email") // QRCode Type Generate
->setData([
"email"=>"aymanalaiwah.dev@gmail.com",
"subject"=>"QRCode Monkey Api",
"body"=>"Test Send Mail"
])
->setFileType("svg")
->getQRCode();
echo $qrcode;
- Set Qrcode Type (Optional) default value (text)
$generate = new CustomeGenerate();
/**
* @param string $type [ phone,sms, email, text, url, location, wifi, bitcoin, event]
*/
$qrcode->setType($type);
- Set Platform (Optional) default value (web)
$generate = new CustomeGenerate();
/**
* @param string $platform [android,ios,web]
*/
$qrcode->setPlatform($platform);
- Set File type (Optional) default value (png)
$generate = new CustomeGenerate();
/**
* @param string $fileType [svg,png,eps,pdf]
*/
$qrcode->setFileType($fileType);
- Set Qrcode Size (Optional) default value (300x300)
$generate = new CustomeGenerate();
/**
* @param string $size
*/
$qrcode->setSize($size);
- Set Qrcode Background Color (Optional) default value (#ffffff)
$generate = new CustomeGenerate();
/**
* @param string $hexColor
*/
$qrcode->setBgColor($hexColor);
- Set Qrcode Body Color (Optional) default value (#000000)
$generate = new CustomeGenerate();
/**
* @param string $hexColor
*/
$qrcode->setBodyColor($hexColor);
- Set Qrcode Eye Color (Optional) default value (#000000)
$generate = new CustomeGenerate();
/**
* @param string $eye1Color default value (#000000)
* @param string $eye2Color default value (#000000)
* @param string $eye3Color default value (#000000)
*/
$qrcode->setEyeColors($eye1Color, $eye2Color, $eye3Color)
- Set Qrcode Eye Ball Color (Optional) default value (#000000)
$generate = new CustomeGenerate();
/**
* @param string $eyeBall1Color default value (#000000)
* @param string $eyeBall2Color default value (#000000)
* @param string $eyeBall3Color default value (#000000)
*/
$qrcode->setEyeBallColors($eyeBall1Color, $eyeBall2Color, $eyeBall3Color)
- Set Qrcode Gradient Color (Optional) default value (null)
$generate = new CustomeGenerate();
/**
* @param string $gradientColor1 default value (null)
* @param string $gradientColor2 default value (null)
*/
$qrcode->setGradientColors($gradientColor1, $gradientColor2)
- Set Qrcode Gradient type (Optional) default value (linear)
$generate = new CustomeGenerate();
/**
* @param string $type [linear, radial]
*/
$qrcode->setGradientType($type)
- Set Qrcode logo mode (Optional) default value (default)
$generate = new CustomeGenerate();
/**
* @param string $mode [default, clean]
*/
$qrcode->setLogoMode($mode)
- Set Qrcode logo (Optional) default value (null)
$generate = new CustomeGenerate();
/**
* @param string $logo url logo
*/
$qrcode->setLogo($logo)
- Gradient On Eyes default false
$generate = new CustomeGenerate();
$qrcode->gradientOnEyes()
- Generate QrCode and return image data
$generate = new CustomeGenerate();
$qrcode->getQRCode()
- Generate QrCode and return download image url
$generate = new CustomeGenerate();
$qrcode->download()
- Set Qrcode Body shape (optional) default value (square)
$generate = new CustomeGenerate();
/**
* @param string $shape
*/
$qrcode->setBodyShape($shape);
// Get Body Shape Supported
use Prgayman\QRCodeMonkey\Support\Shapes;
$bodyShape = Shapes::bodyShape(); // Get Body Shape supported keys
$bodyShapeImgs = Shapes::getBodyShapeImg(); // Get Body Shape supported keys with image url
- Set Qrcode Eye shape (optional) default value (frame0)
$generate = new CustomeGenerate();
/**
* @param string $shape
*/
$qrcode->setEyeShape($shape);
// Get Eye Shape Supported
use Prgayman\QRCodeMonkey\Support\Shapes;
$eyeFrameShape = Shapes::eyeFrameShape(); // Get Eye Shape supported keys
$eyeFrameShapeImgs = Shapes::getEyeFrameShapeImg(); // Get Eye Shape supported keys with image url
- Set Qrcode Eye Ball shape (optional) default value (ball0)
$generate = new CustomeGenerate();
/**
* @param string $shape
*/
$qrcode->setEyeBallShape($shape);
// Get Eye Ball Shape Supported
use Prgayman\QRCodeMonkey\Support\Shapes;
$eyeBallShape = Shapes::eyeBallShape(); // Get Eye Ball Shape supported keys
$eyeBallShapeImg = Shapes::getEyeBallShapeImg(); // Get Eye Ball Shape supported keys with image url
Please submit all issues and pull requests to the prgayman/laravel-qrcodemonkey repository on the develop branch!
This software is released under the MIT license.