PHP code example of krugerdavid / laravel-bancard-qr
1. Go to this page and download the library: Download krugerdavid/laravel-bancard-qr 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/ */
krugerdavid / laravel-bancard-qr example snippets
use KrugerDavid\LaravelBancardQR\BancardQR;
$response = BancardQR::generate_qr(int $amount, string $description, ?array $promotions);
use KrugerDavid\LaravelBancardQR\BancardQR;
// $hook_alias is the QR alias
BancardQR::revert($hook_alias);
bash
php artisan vendor:publish --provider="KrugerDavid\LaravelBancardQR\BancardQRServiceProvider"