PHP code example of prgayman / laravel-qrcodemonkey
1. Go to this page and download the library: Download prgayman/laravel-qrcodemonkey library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
prgayman / laravel-qrcodemonkey example snippets
use Prgayman\QRCodeMonkey\QRCode\CustomeGenerate;
$generate = new CustomeGenerate();
$qrcode = $generate->setType("email") // QRCode Type Generate
->setData([
"email"=>"[email protected]",
"subject"=>"QRCode Monkey Api",
"body"=>"Test Send Mail"
])
->setFileType("svg")
->getQRCode();
echo $qrcode;
$generate = new CustomeGenerate();
/**
* @param string $logo url logo
*/
$qrcode->setLogo($logo)
$generate = new CustomeGenerate();
$qrcode->gradientOnEyes()
$generate = new CustomeGenerate();
$qrcode->getQRCode()
$generate = new CustomeGenerate();
$qrcode->donwload()
$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
$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
$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
sh
'providers' => [
// ...
Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider::class,
];
sh
php artisan vendor:publish --provider="Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.