NAME

Plack::Middleware::QRCode - Mount QRCode image service on your Plack application.

SYNOPSIS

basic configuration:

use Plack::Middleware::QRCode;
builder {
    mount '/qrcode' => builder {
        enable 'QRCode';
        sub {  };
    };
}

provide default options:

use Plack::Middleware::QRCode;
builder {
    mount '/qrcode' => builder {
    enable 'QRCode' , 
        type   => 'png',  # image types: gif, png, jpg
        render => {
            size          => 2,
            margin        => 2,
            version       => 1,
            level         => 'M',
            casesensitive => 1,
        };
    }
}

DESCRIPTION

Plack::Middleware::QRCode provides QRCode image service for your plack application.

When you mount QRCode service on /qrcode, make a request from /qrcode/your_qrcode_text?s=10

s means your QRCode image size.

AUTHOR

Yo-An Lin <cornelius.howl {at} gmail.com>

SEE ALSO

Imager::QRCode

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.