All Projects → nguyenary → QRCodeMonkey

nguyenary / QRCodeMonkey

Licence: MIT license
A library using PHP to generate QRCode from https://www.qrcode-monkey.com free

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to QRCodeMonkey

QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+97.83%)
Mutual labels:  qrcode-generator, php-qrcode
aws-lambda-barcode-generator
This project uses a Node.js wrapper to build a Go Lambda function that generates & returns a barcode when triggered by AWS API Gateway.
Stars: ✭ 14 (-69.57%)
Mutual labels:  qrcode-generator
next-qrcode
React hooks for generating QRCode for your next React apps.
Stars: ✭ 87 (+89.13%)
Mutual labels:  qrcode-generator
rx-otp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (+71.74%)
Mutual labels:  qrcode-generator
luaqrcode
Pure Lua qrcode library
Stars: ✭ 114 (+147.83%)
Mutual labels:  qrcode-generator
QRCodeGenerator
QRCode generator (c++/Qt #gui)
Stars: ✭ 57 (+23.91%)
Mutual labels:  qrcode-generator
Lilith
Terminal QRCode Generator
Stars: ✭ 39 (-15.22%)
Mutual labels:  qrcode-generator
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-39.13%)
Mutual labels:  qrcode-generator
EasyQRCodeJS-NodeJS
EasyQRCodeJS-NodeJS is a NodeJS server side javascript QRCode image(PNG/JPEG/SVG/Base64 data url) generator. Support setting Dot style, Logo, Background image, Colorful, Title and more. Support binary(hex) data mode.
Stars: ✭ 73 (+58.7%)
Mutual labels:  qrcode-generator
qrrs
CLI QR code generator and reader written in rust
Stars: ✭ 29 (-36.96%)
Mutual labels:  qrcode-generator
qrencoder
🔳 Make QR codes in R via libqrencode
Stars: ✭ 59 (+28.26%)
Mutual labels:  qrcode-generator
BGAQRCode-Android
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式
Stars: ✭ 7,714 (+16669.57%)
Mutual labels:  qrcode-generator
QRCodeGenLib4Pascal
Generates QR Codes from text strings and byte arrays.
Stars: ✭ 42 (-8.7%)
Mutual labels:  qrcode-generator
QRCodeLibVBA
QR Code generator library in VBA
Stars: ✭ 59 (+28.26%)
Mutual labels:  qrcode-generator
AppClipCodeGenerator
App Clip Code Generator macOS App built with SwiftUI
Stars: ✭ 75 (+63.04%)
Mutual labels:  qrcode-generator
flutter qr code scanner generator sharing
Flutter App For Scanning, Generating, Sharing QR Code
Stars: ✭ 137 (+197.83%)
Mutual labels:  qrcode-generator
QRCode
A QRCode Generator in Swift
Stars: ✭ 67 (+45.65%)
Mutual labels:  qrcode-generator
qikQR
minimal desktop app to create QR codes.
Stars: ✭ 20 (-56.52%)
Mutual labels:  qrcode-generator
HibiAPI
一个实现了多种常用站点的易用化API的程序 / A program that implements easy-to-use APIs for a variety of commonly used sites.
Stars: ✭ 427 (+828.26%)
Mutual labels:  qrcode-generator
QRCode-Telegram-bot
This is a simple bot. You generate QRcode with this bot
Stars: ✭ 12 (-73.91%)
Mutual labels:  qrcode-generator

PHP Class Generate Free QRCode

👉 A library using PHP to generate QRCode from https://www.qrcode-monkey.com free
NOTE: Do not generate too many QRCode at once or your IP will be locked for a period of time

Getting started

Use composer to integrate your PHP project

composer require nguyenary/qr-code-monkey

Configuration

📘 You can configure to generate QRCode or use default configuration. Below is a list of configurations that you can use

Parameter Type Default Description
body String square     square
    mosaic
    dot
    circle
    circle-zebra
    circle-zebra-vertical
    circular
  edge-cut
  edge-cut-smooth
  japnese
  leaf
  pointed
  pointed-edge-cut
  pointed-in
  pointed-in-smooth
  pointed-smooth
  round
  rounded-in
  rounded-in-smooth
  rounded-pointed
  star
  diamond
eye String frame0   frame0
  frame1
  frame2
  frame3
  frame4
  frame5
  frame6
  frame7
  frame8
  frame10
  frame11
  frame12
  frame13
  frame14
  frame16
eyeBall String ball0   ball0
  ball1
  ball2
  ball3
  ball5
  ball6
  ball7
  ball8
  ball10
  ball11
  ball12
  ball13
  ball14
  ball15
  ball16
  ball17
  ball18
ball19
erf1 Array [ ] Rotate the upper left eye element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
erf2 Array [ ] Rotate the upper right eye element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
erf3 Array [ ] Rotate the lower left eye element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
brf1 Array [ ] Rotate the upper left eye ball element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
brf2 Array [ ] Rotate the upper right eye ball element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
brf3 Array [ ] Rotate the lower left eye ball element. Add "fv" or "fh" to invert element vertically or horizontally. E.g. ["fv","fh"] inverts a element vertically and horziontally.
bodyColor String #000000 Color of QR code body as HEX value.
bgColor String #ffffff Color of QR code background as HEX value. Note: the background should always have a lighter color to be scanable with all devices.
eye1Color String #000000 Color of the upper left eye as HEX value.
eye2Color String #000000 Color of the upper right eye as HEX value.
eye3Color String #000000 Color of the lower left eye as HEX value.
eyeBall1Color String #000000 Color of the upper left eye ball as HEX value.
eyeBall2Color String #000000 Color of the upper right eye ball as HEX value.
eyeBall3Color String #000000 Color of the lower left eye ball as HEX value.
gradientColor1 String null Color 1 for gradient color of body as HEX.
gradientColor2 String null Color 2 for gradient color of body as HEX.
gradientType String linear Gradient type for color of body. Value can be "linear" or "radial".
gradientOnEyes Boolean false Disable individual colors for the eye elements and set the gradient color for the complete QR code.

Example Usage

For details on the examples please see the file example.php

First you need to initialize a QRCode instance

require_once 'vendor/autoload.php';

use nguyenary\QRCodeMonkey\QRCode;

$qrcode = new QRCode('nguyenary');

Example easy usage:

print_r($qrcode->create());

The above code will return a URL containing a QR Code

Example of saving QRCode as a file

$qrcode->create('file_qrcode.png');

Example for config:

$qrcode = new QRCode('nguyenary');

$qrcode->setConfig([
    'bgColor' => '#FFFFFF',
    'body' => 'square',
    'bodyColor' => '#0277bd',
    'brf1' => [],
    'brf2' => [],
    'brf3' => [],
    'erf1' => [],
    'erf2' => [],
    'erf3' => [],
    'eye' => 'frame0',
    'eye1Color' => '#000000',
    'eye2Color' => '#000000',
    'eye3Color' => '#000000',
    'eyeBall' => 'ball0',
    'eyeBall1Color' => '#000000',
    'eyeBall2Color' => '#000000',
    'eyeBall3Color' => '#000000',
    'gradientColor1' => '#0277bd',
    'gradientColor2' => '#000000',
    'gradientOnEyes' => 'true',
    'gradientType' => 'linear',
]);

Example for set logo, file type and size

// Set logo path file to use
$qrcode->setLogo('image/facebook.png');

// Support png, svg, jpg, pdf, eps
$qrcode->setFileType('png');

// Size limit is 3480 pixel
$qrcode->setSize(200);

Features

What's all the bells and whistles this project can perform?

  • High quality images for printing
  • Generate QRCode completely for free
  • Many QRCode templates can be customized
  • Can be exported as a URL or saved as a file
  • Output format options (Support png, svg, jpg, pdf, eps)

NOTE: Format pdf and eps no support for color gradients

Contributing

This is a project I do in my spare time to contribute to the community. I would very much welcome if you would like to contribute to this project

Licensing

The code in this project is licensed under MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].