PHP code example of wecreative / app-qr-code

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

    

wecreative / app-qr-code example snippets



use Wecreative\AppQrCodeAPI\Client;
use Wecreative\AppQrCodeAPI\AppQrCode;

$client = new Client( 'your_api_key' );
$appQrCode = new AppQrCode( $client );

$data = [
    "frame_name" => "no-frame",
    "qr_code_text" => "https://www.qr-code-generator.com/",
    "image_format" => "SVG",
    "qr_code_logo" => "scan-me-square"
];

$res = $appQrCode->create( 'qr_code_name', $data );