wuchuheng/qr_merge

二维码背景图片合并

0.01 2020-07-02 16:51 UTC

This package is auto-updated.

Last update: 2020-08-02 17:28:42 UTC


README

二维码背景图片合并.

Installing

$ composer require wuchuheng/qr_merge -vvv

Usage

include_once  './vendor/autoload.php';

use Wuchuheng\QrMerge\QrMerge;
$QrMerge = new QrMerge();
$backgroud_file = './test.png';
$x = 100,
$y = 100,
$size = 3;
$qr_content = 'hello world';
$imgbinary = $QrMerge->generateQr($backgroud_file, $x, $y, $size, $qr_content);
$pngBase64 = $QrMerge->toBase64($imgbinary, 'png');
var_dump($pngBase64); // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAGFCAIAAABmHxisAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGfUlEQVR4nO3dzW7bRhhA0SjoNkWK9P2fsECAvIC7cwPUsvgzQ/JK5ywTiaGBG+vTaETevn3/8QU6vp59ArCOZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDGSJUayxEiWGMkSI1liJEuMZImRLDF/nH0CJb9+/nP2KbyEP//6+5O/9VuWGMkSI1liJEuMZImRLDGSJUayxEiWGJ9+DXO73WYc9u3t7cPjv//5wnO4d5xRj1/lw5NfyG9ZYiRLjGSJMcu+ikmj9vEkO8vmdxgD23r41m3JW7p7x1xr1M9lMCBGssQYDKZbuw469rCbj/nwfCb9XA9J9qX93lPl/ZnBgBjJEmMweEWrZtarkWzGJ3Pnwy0sS2bWSrsGA2IkS4zB4JmtWrfa8OHtKST7ii6b4xIGA2I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IlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS4xkiZEsMZIlRrLESJYYyRIjWWIkS8y/vemP5GNf/gMAAAAASUVORK5CYII=

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT