generate() public method

Generates a QrCode.
public generate ( string $text, null | string $filename = null ) : string | void
$text string The text to be converted into a QrCode
$filename null | string The filename and path to save the QrCode file
return string | void Returns a QrCode string depending on the format, or saves to a file.
Exemplo n.º 1
0
 /**
  * Generates a QrCode
  *
  * @param string $text The text to be converted into a QrCode
  * @param null|string $filename The filename and path to save the QrCode file
  * @return string|void Returns a QrCode string depending on the format, or saves to a file.
  * @static 
  */
 public static function generate($text, $filename = null)
 {
     return \SimpleSoftwareIO\QrCode\BaconQrCodeGenerator::generate($text, $filename);
 }