PHP code example of softwax / qr-code-monkey-api-client

1. Go to this page and download the library: Download softwax/qr-code-monkey-api-client 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/ */

    

softwax / qr-code-monkey-api-client example snippets


use SoftWax\QRCodeMonkeyApiClient\Api\QRCodeMonkeyInterface;
use SoftWax\QRCodeMonkeyApiClient\Api\QRCodeMonkeyFactory;
use SoftWax\QRCodeMonkeyApiClient\Model\CustomQRCode;
use Psr\Http\Message\StreamInterface;

/** @var QRCodeMonkeyInterface $api */
$api = QRCodeMonkeyFactory::create():

/** @var StreamInterface $qrCodeImageStream */
$qrCodeImageStream = $api->createCustom(new CustomQRCode('my qr code data'));