Skip to content

Commit d98e958

Browse files
committed
📖
1 parent cae3a63 commit d98e958

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed

docs/Appendix/URI-Content.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ The `LABEL`, as well as the `issuer` values shall be URL-encoded according to [R
123123
| `LABEL` | The label is used to identify which account a key is associated with.<br/>It may be prefixed with the issuer name, separated by a colon: `<issuer>:<account>` |
124124

125125

126-
| Query parameter | Description |
127-
|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
128-
| `secret` | Secret key (required), a cryptographically random string, encoded in Base32<br/>according to [RFC 3548](https://datatracker.ietf.org/doc/html/rfc3548) (without padding).<br/>Some authenticators may support Base64 and hexadecimal values as well. |
129-
| `issuer` | A string value indicating the provider or service this account is associated with. |
130-
| `algorithm` | Hash algorithm, may be one of `SHA1` (default), `SHA256` or `SHA512` |
131-
| `digits` | Length of the OTP code: `6` or `8` |
132-
| `counter` | (`hotp` only, required) The initial counter value |
133-
| `period` | (`totp` only) The period of time in seconds a code will be valid for (default: 30) |
126+
| Query parameter | Description |
127+
|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
128+
| `secret` | Secret key (required), a cryptographically secure random string, encoded in Base32<br/>according to [RFC 3548](https://datatracker.ietf.org/doc/html/rfc3548) (without padding).<br/>Some authenticators may support Base64 and hexadecimal values as well. |
129+
| `issuer` | A string value indicating the provider or service this account is associated with. |
130+
| `algorithm` | Hash algorithm, may be one of `SHA1` (default), `SHA256` or `SHA512` |
131+
| `digits` | Length of the OTP code: `6` or `8` |
132+
| `counter` | (`hotp` only, required) The initial counter value |
133+
| `period` | (`totp` only) The period of time in seconds a code will be valid for (default: 30) |
134134

135135
The parameters `algorithm`, `digits` and `period` may not be supported by some devices/apps.
136136

@@ -251,11 +251,16 @@ END:VCALENDAR
251251
- [iCalendar generator for PHP (GitHub)](https://github.com/spatie/icalendar-generator)
252252

253253

254-
## SEPA Credit Transfer
254+
## Credit Transfer
255255

256+
### SEPA
256257
- [Guidelines to Enable the Data Capture for the Initiation of a SEPA Credit Transfer](https://www.europeanpaymentscouncil.eu/document-library/guidance-documents/quick-response-code-guidelines-enable-data-capture-initiation)
257258
- [sepa-qr-data library for PHP (GitHub)](https://github.com/smhg/sepa-qr-data-php)
258259

260+
### Pix
261+
- [Manual de Padrões para Iniciação do Pix (PDF)](https://www.bcb.gov.br/content/estabilidadefinanceira/pix/Regulamento_Pix/II_ManualdePadroesparaIniciacaodoPix.pdf)
262+
- [OpenBoleto (GitHub)](https://github.com/openboleto/openboleto)
263+
259264

260265
## See also
261266

docs/Customizing/QROutputAbstract.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class MyOutput extends QROutputAbstract{
211211
// loop over the paths
212212
foreach($paths as $M_TYPE_LAYER => &$path){
213213

214-
if(empty($path)){
214+
if($path === []){
215215
continue;
216216
}
217217

docs/Usage/Installation.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ After that, run `composer install` in the package root directory to install the
6363
Profit!
6464

6565

66-
### Can i use this library without using composer?
66+
### Can I use this library without using composer?
6767

6868
You can, but it's absolutely not recommended, nor supported.
6969

@@ -82,8 +82,9 @@ The PHP built-in extensions [GdImage](https://www.php.net/manual/book.image.php)
8282

8383
| version | branch/tag | PHP | supported | required extensions | optional extensions | info |
8484
|---------|----------------------------------------------------------------------|------------------|-----------|---------------------|------------------------------------------------------------------------------------|---------------------------|
85-
| **v5** | [`dev-main`](https://github.com/chillerlan/php-qrcode/tree/main) | `^7.4 \|\| ^8.0` | yes | `mbstring` | `gd` or `imagick` required for reading QR Codes, `fileinfo` is used in `QRImagick` | |
86-
| **v4** | [`4.3.4`](https://github.com/chillerlan/php-qrcode/tree/v4.3.x) | `^7.4 \|\| ^8.0` | yes | `gd`, `mbstring` | `imagick` | |
85+
| **v6** | [`dev-main`](https://github.com/chillerlan/php-qrcode/tree/main) | `^8.2` | yes | `mbstring` | `gd` or `imagick` required for reading QR Codes, `fileinfo` is used in `QRImagick` | |
86+
| **v5** | [`5.0.5`](https://github.com/chillerlan/php-qrcode/tree/v5.0.x) | `^7.4 \|\| ^8.0` | yes | `mbstring` | `gd` or `imagick` required for reading QR Codes, `fileinfo` is used in `QRImagick` | |
87+
| **v4** | [`4.3.4`](https://github.com/chillerlan/php-qrcode/tree/v4.3.x) | `^7.4 \|\| ^8.0` | no | `gd`, `mbstring` | `imagick` | |
8788
| **v3** | [`3.4.1`](https://github.com/chillerlan/php-qrcode/tree/v3.2.x) | `^7.2` | no | `gd`, `mbstring` | `imagick` | v3.4.1 also supports PHP8 |
8889
| **v2** | [`2.0.8`](https://github.com/chillerlan/php-qrcode/tree/v2.0.x) | `>=7.0.3` | no | `gd`, `mbstring` | | |
8990
| **v1** | [`1.0.9`](https://github.com/chillerlan/php-qrcode/tree/v2.0.x-php5) | `>=5.6` | no | `gd`, `mbstring` | | please let PHP 5 die! |

docs/Usage/Overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ For the QR Code reader, either `ext-gd` or `ext-imagick` is required!
4646
- Drupal:
4747
- [Two-factor Authentication `tfa`](https://www.drupal.org/project/tfa) (Drupal 8+)
4848
- [Google Authenticator Login `ga_login`](https://www.drupal.org/project/ga_login) (deprecated, Drupal 7)
49-
- Symfony
49+
- Laravel:
50+
- [Filament](https://github.com/filamentphp/filament)
51+
- Symfony:
5052
- [phpqrcode-bundle](https://github.com/jonasarts/phpqrcode-bundle)
5153
- WordPress:
5254
- [wp-two-factor-auth](https://github.com/sjinks/wp-two-factor-auth)
5355
- [simple-2fa](https://wordpress.org/plugins/simple-2fa/)
5456
- [floating-share-button](https://github.com/qriouslad/floating-share-button)
55-
- WoltLab Suite
57+
- WoltLab Suite:
5658
- [two-step-verification](http://pluginstore.woltlab.com/file/3007-two-step-verification/)
5759
- [[Developer] PHP QR Code](https://www.woltlab.com/pluginstore/file/7995-entwickler-php-qr-code/)
5860
- other uses:

docs/qroptions-doc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
}
6868

6969
// add a "see also" section
70-
if(!empty($see)){
70+
if($see !== []){
7171
$content[] = "\n**See also:**\n";
7272

7373
foreach($see as $line){
@@ -96,7 +96,7 @@
9696
}
9797

9898
// add "Links" section
99-
if(!empty($link)){
99+
if($link !== []){
100100
$content[] = "\n**Links:**\n";
101101

102102
foreach($link as $line){

0 commit comments

Comments
 (0)