larsemil/swishcoder

Swish QR Code generator

v1.0 2022-12-06 13:58 UTC

This package is auto-updated.

Last update: 2025-02-06 18:36:48 UTC


README

Small library to generate qr codes

Installation

Install the package using composer.

composer require larsemil/swishcoder

Using it

use larsemil\SwishCoder\SwishCoder;

$q = new SwishCoder();
        $q->payee('+46762216234')
        ->message([
            'value' => 'Order 3'
        ]) //message is optional
        ->amount(['value'=> 100]); //amount is optional

        $data = $q->get(); //gets the qrcode as image/png

API