定制 prgayman/laravel-qrcodemonkey 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

prgayman/laravel-qrcodemonkey

Composer 安装命令:

composer require prgayman/laravel-qrcodemonkey

包简介

Laravel package for use Qrcode Monkey Api

README 文档

README

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 prgayman/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' => [
    // ...
    Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider::class,
];
  1. You should publish the config/qrcode_monkey.php config file with:
php artisan vendor:publish --provider="Prgayman\QRCodeMonkey\QRCodeMonkeyServiceProvider"

Documentation

Custome Generate QRCode

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;

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 Prgayman\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 Prgayman\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 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

Contributing

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

License

This software is released under the MIT license.

prgayman/laravel-qrcodemonkey 适用场景与选型建议

prgayman/laravel-qrcodemonkey 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.12k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2020 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「qrcode」 「laravel」 「monkey」 「QRCodeMonkey」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 prgayman/laravel-qrcodemonkey 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 prgayman/laravel-qrcodemonkey 我们能提供哪些服务?
定制开发 / 二次开发

基于 prgayman/laravel-qrcodemonkey 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 19
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-21