상속: implements SimpleSoftwareIO\QrCode\QrCodeInterface
예제 #1
0
 /**
  * Generates a QR code data url to display inline.
  *
  * @param $company
  * @param $holder
  * @param $secret
  * @return string
  */
 public function getQRCodeInline($company, $holder, $secret, $size = 100)
 {
     $qr = new BaconQrCodeGenerator(null, new Png());
     $url = $this->getQRCodeUrl($company, $holder, $secret);
     return 'data:image/png;base64,' . base64_encode($qr->margin(0)->size($size)->generate($url));
 }
예제 #2
0
 /**
  * Sets the Encoding mode.
  *
  * @param string $encoding
  * @return $this 
  * @static 
  */
 public static function encoding($encoding)
 {
     return \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator::encoding($encoding);
 }