diff --git a/examples/MyAuthenticatorClass.php b/examples/MyAuthenticatorClass.php deleted file mode 100644 index 8e4ea12e5..000000000 --- a/examples/MyAuthenticatorClass.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @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); - } - -} diff --git a/examples/authenticator.php b/examples/authenticator.php deleted file mode 100644 index 544a52cc4..000000000 --- a/examples/authenticator.php +++ /dev/null @@ -1,17 +0,0 @@ - - * @copyright 2017 Smiley - * @license MIT - */ - -namespace chillerlan\QRCodeExamples; - -require_once '../vendor/autoload.php'; - -header('Content-type: image/svg+xml'); - -echo (new MyAuthenticatorClass)->getQRCode();