<?php

namespace EdwinFound\Utils;

class QrcodeUtil
{
    public static function png($content, $size = 200)
    {
        $renderer = new \BaconQrCode\Renderer\Image\Png();
        $renderer->setMargin(0);
        $renderer->setHeight($size);
        $renderer->setWidth($size);
        $writer = new \BaconQrCode\Writer($renderer);
        return $writer->writeString($content);
    }
}