PHP code example of mikica / zf2-qrcode-bitcoin

1. Go to this page and download the library: Download mikica/zf2-qrcode-bitcoin 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/ */

    

mikica / zf2-qrcode-bitcoin example snippets


//width and height are optional.
echo $this->btc_qrcode($address, $amount, $width, $height);
echo $this->btc_qrcode("1J19TLLqu8DH2cv3ze7g1xZNwyyXWyGLKc","1.32");

'modules' => array(
    '...',
    'QrCodeBitcoin'
),