:octocat: docfix

This commit is contained in:
smiley
2017-11-10 01:04:34 +01:00
parent 8ef55ec8e8
commit 136e581b0c
+14 -12
View File
@@ -148,18 +148,6 @@ foreach($matrix as $row){
```
### Authenticator example
[codemasher/php-googleauth](https://github.com/codemasher/php-googleauth) features creation of `otpauth://` URIs for use with most mobile authenticators:
```php
use chillerlan\GoogleAuth\Authenticator;
$authenticator = new Authenticator;
$data = $authenticator->getUri($authenticator->createSecret(), 'test', 'chillerlan.net');
$qrcode = new QRCode($data, new QRImage);
```
### Custom output modules
But then again, instead of bloating your own code, you can simply create your own output module by extending `QROutputAbstract`.
```php
@@ -201,6 +189,20 @@ class MyCustomOutput extends QROutputAbstract{
}
```
### Authenticator example
[codemasher/php-googleauth](https://github.com/codemasher/php-googleauth) features creation of `otpauth://` URIs for use with most mobile authenticators:
```php
use chillerlan\GoogleAuth\Authenticator;
$authenticator = new Authenticator;
$secret = $authenticator->createSecret(); // -> userdata
$data = $authenticator->getUri($secret, 'test', 'chillerlan.net');
$qrcode->setData($data)->output();
```
### `QRCode` public methods
method | return
------ | ------