PHP code example of rikudou / qr-payment-bundle

1. Go to this page and download the library: Download rikudou/qr-payment-bundle 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/ */

    

rikudou / qr-payment-bundle example snippets




use \Rikudou\QrPaymentBundle\QrPayment\QrPaymentFactory;

class MyAwesomeService {
    
    /**
     * @var QrPaymentFactory 
     */
    private $qrPaymentFactory;
    
    public function __construct(QrPaymentFactory $qrPaymentFactory) {
        $this->qrPaymentFactory = $qrPaymentFactory;
    }
    
    public function getCzechQrCode() {
        return $this->qrPaymentFactory->czech();
    }
    
    public function getSlovakQrCode() {
        return $this->qrPaymentFactory->slovak();
    }
    
    public function getEuropeanQrCode() {
        return $this->qrPaymentFactory->european();
    }
    
    public function getAustrianQrCode() {
        return $this->qrPaymentFactory->austrian();
    }
    
    public function getBelgianQrCode() {
        return $this->qrPaymentFactory->belgian();
    }
    
    public function getGermanQrCode() {
        return $this->qrPaymentFactory->german();
    }
    
    public function getDutchQrCode() {
        return $this->qrPaymentFactory->dutch();
    }
    
    public function getFinnishQrCode() {
        return $this->qrPaymentFactory->finnish();
    }
    
}