Code Monkey home page Code Monkey logo

qrcode-generator's Introduction

QRCode Monky API

The Free QR Code Generator for High Quality QR Codes

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.

Features

  • 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

Installation

  1. You can install the package via composer:
composer require HamasakiBrain/laravel-qrcodemonkey
  1. Optional: The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [
    // ...
    HamasakiBrain\QRCodeMonkey\QRCodeMonkeyServiceProvider::class,
];
  1. You should publish the config/qrcode_monkey.php config file with:
php artisan vendor:publish --provider="HamasakiBrain\QRCodeMonkey\QRCodeMonkeyServiceProvider"

Documentation

Custome Generate QRCode

use HamasakiBrain\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;

Functions CustomeGenerate Class

  1. 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);
  1. Set Platform (Optional) default value (web)
$generate = new CustomeGenerate();
/**
* @param string $platform [android,ios,web]
*/
$qrcode->setPlatform($platform);
  1. Set File type (Optional) default value (png)
$generate = new CustomeGenerate();
/**
* @param string $fileType [svg,png,eps,pdf]
*/
$qrcode->setFileType($fileType);
  1. Set Qrcode Size (Optional) default value (300x300)
$generate = new CustomeGenerate();
/**
* @param string $size
*/
$qrcode->setSize($size);
  1. Set Qrcode Background Color (Optional) default value (#ffffff)
$generate = new CustomeGenerate();
/**
* @param string $hexColor
*/
$qrcode->setBgColor($hexColor);
  1. Set Qrcode Body Color (Optional) default value (#000000)
$generate = new CustomeGenerate();
/**
* @param string $hexColor
*/
$qrcode->setBodyColor($hexColor);
  1. 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)
  1. 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)
  1. 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)
  1. Set Qrcode Gradient type (Optional) default value (linear)
$generate = new CustomeGenerate();
/**
* @param string $type [linear, radial]
*/
$qrcode->setGradientType($type)
  1. Set Qrcode logo mode (Optional) default value (default)
$generate = new CustomeGenerate();
/**
* @param string $mode [default, clean]
*/
$qrcode->setLogoMode($mode)
  1. Set Qrcode logo (Optional) default value (null)
$generate = new CustomeGenerate();
/**
* @param string $logo url logo
*/
$qrcode->setLogo($logo)
  1. Gradient On Eyes default false
$generate = new CustomeGenerate();
$qrcode->gradientOnEyes()
  1. Generate QrCode and return image data
$generate = new CustomeGenerate();
$qrcode->getQRCode()
  1. Generate QrCode and return download image url
$generate = new CustomeGenerate();
$qrcode->donwload()
  1. Set Qrcode Body shape (optional) default value (square)
$generate = new CustomeGenerate();

/**
* @param string $shape
*/
$qrcode->setBodyShape($shape);

// Get Body Shape Supported
use HamasakiBrain\QRCodeMonkey\Support\Shapes;
$bodyShape = Shapes::bodyShape(); // Get Body Shape supported keys
$bodyShapeImgs = Shapes::getBodyShapeImg(); // Get Body Shape supported keys with image url
  1. Set Qrcode Eye shape (optional) default value (frame0)
$generate = new CustomeGenerate();

/**
* @param string $shape
*/
$qrcode->setEyeShape($shape);

// Get Eye Shape Supported
use HamasakiBrain\QRCodeMonkey\Support\Shapes;
$eyeFrameShape = Shapes::eyeFrameShape(); // Get Eye Shape supported keys
$eyeFrameShapeImgs = Shapes::getEyeFrameShapeImg(); // Get Eye Shape supported keys with image url
  1. Set Qrcode Eye Ball shape (optional) default value (ball0)
$generate = new CustomeGenerate();

/**
* @param string $shape
*/
$qrcode->setEyeBallShape($shape);

// Get Eye Ball Shape Supported
use HamasakiBrain\QRCodeMonkey\Support\Shapes;
$eyeBallShape = Shapes::eyeBallShape(); // Get Eye Ball Shape supported keys
$eyeBallShapeImg = Shapes::getEyeBallShapeImg(); // Get Eye Ball Shape supported keys with image url

Contributing

Please submit all issues and pull requests to the HamasakiBrain/laravel-qrcodemonkey repository on the develop branch!

License

This software is released under the MIT license.

qrcode-generator's People

Watchers

 avatar

Forkers

deawx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.