codemasher 7 лет назад
Родитель
Сommit
fb2c574b64
2 измененных файлов с 0 добавлено и 50 удалено
  1. 0 33
      examples/MyAuthenticatorClass.php
  2. 0 17
      examples/authenticator.php

+ 0 - 33
examples/MyAuthenticatorClass.php

@@ -1,33 +0,0 @@
-<?php
-/**
- * Class MyAuthenticatorClass
- *
- * @filesource   MyAuthenticatorClass.php
- * @created      24.12.2017
- * @package      chillerlan\QRCodeExamples
- * @author       Smiley <smiley@chillerlan.net>
- * @copyright    2017 Smiley
- * @license      MIT
- */
-
-namespace chillerlan\QRCodeExamples;
-
-use chillerlan\QRCode\{QRCode, QROptions, Traits\QRAuthenticator};
-
-/**
- * using the QRAuthenticator trait
- */
-class MyAuthenticatorClass{
-	use QRAuthenticator;
-
-	public function getQRCode(){
-		// data fetched from wherever
-		$this->authenticatorSecret = 'SECRETTEST234567';
-		$this->qrOptions = new QROptions(['outputType' => QRCode::OUTPUT_MARKUP_SVG]); // set options if needed
-		$label = 'my label';
-		$issuer = 'example.com';
-
-		return $this->getURIQRCode($label, $issuer);
-	}
-
-}

+ 0 - 17
examples/authenticator.php

@@ -1,17 +0,0 @@
-<?php
-/**
- *
- * @filesource   authenticator.php
- * @created      24.12.2017
- * @author       Smiley <smiley@chillerlan.net>
- * @copyright    2017 Smiley
- * @license      MIT
- */
-
-namespace chillerlan\QRCodeExamples;
-
-require_once '../vendor/autoload.php';
-
-header('Content-type: image/svg+xml');
-
-echo (new MyAuthenticatorClass)->getQRCode();