mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-18 05:36:28 +00:00
fixed examples
This commit is contained in:
+2
-4
@@ -3,15 +3,13 @@
|
||||
require_once '../vendor/autoload.php';
|
||||
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
use chillerlan\QRCode\Output\QROutputBase;
|
||||
use chillerlan\QRCode\Output\QROutputInterface;
|
||||
use chillerlan\QRCode\Output\QROutputAbstract;
|
||||
|
||||
|
||||
/**
|
||||
* Class MyCustomOutput
|
||||
*/
|
||||
class MyCustomOutput extends QROutputBase implements QROutputInterface{
|
||||
class MyCustomOutput extends QROutputAbstract{
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
|
||||
@@ -10,9 +10,7 @@
|
||||
require_once '../vendor/autoload.php';
|
||||
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
use chillerlan\QRCode\Output\QRImage;
|
||||
use chillerlan\QRCode\Output\QRImageOptions;
|
||||
use chillerlan\QRCode\Output\QRString;
|
||||
use chillerlan\QRCode\Output\QRStringOptions;
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ echo '<style>
|
||||
|
||||
$qrStringOptions = new QRStringOptions;
|
||||
$qrStringOptions->type = QRCode::OUTPUT_STRING_HTML;
|
||||
$qrStringOptions->eol = '';
|
||||
|
||||
$qrOptions = new QROptions;
|
||||
$qrOptions->typeNumber = QRCode::TYPE_05;
|
||||
|
||||
Reference in New Issue
Block a user