smiley 1 месяц назад
Родитель
Сommit
d98e9586f9

+ 14 - 9
docs/Appendix/URI-Content.md

@@ -123,14 +123,14 @@ The `LABEL`, as well as the `issuer` values shall be URL-encoded according to [R
 | `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>` |
 
 
-| Query parameter | Description                                                                                                                                                                                                                                          |
-|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `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. |
-| `issuer`        | A string value indicating the provider or service this account is associated with.                                                                                                                                                                   |
-| `algorithm`     | Hash algorithm, may be one of `SHA1` (default), `SHA256` or `SHA512`                                                                                                                                                                                 |
-| `digits`        | Length of the OTP code: `6` or `8`                                                                                                                                                                                                                   |
-| `counter`       | (`hotp` only, required) The initial counter value                                                                                                                                                                                                    |
-| `period`        | (`totp` only) The period of time in seconds a code will be valid for (default: 30)                                                                                                                                                                   |
+| Query parameter | Description                                                                                                                                                                                                                                                 |
+|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| `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. |
+| `issuer`        | A string value indicating the provider or service this account is associated with.                                                                                                                                                                          |
+| `algorithm`     | Hash algorithm, may be one of `SHA1` (default), `SHA256` or `SHA512`                                                                                                                                                                                        |
+| `digits`        | Length of the OTP code: `6` or `8`                                                                                                                                                                                                                          |
+| `counter`       | (`hotp` only, required) The initial counter value                                                                                                                                                                                                           |
+| `period`        | (`totp` only) The period of time in seconds a code will be valid for (default: 30)                                                                                                                                                                          |
 
 The parameters `algorithm`, `digits` and `period` may not be supported by some devices/apps.
 
@@ -251,11 +251,16 @@ END:VCALENDAR
 - [iCalendar generator for PHP (GitHub)](https://github.com/spatie/icalendar-generator)
 
 
-## SEPA Credit Transfer
+## Credit Transfer
 
+### SEPA
 - [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)
 - [sepa-qr-data library for PHP (GitHub)](https://github.com/smhg/sepa-qr-data-php)
 
+### Pix
+- [Manual de Padrões para Iniciação do Pix (PDF)](https://www.bcb.gov.br/content/estabilidadefinanceira/pix/Regulamento_Pix/II_ManualdePadroesparaIniciacaodoPix.pdf)
+- [OpenBoleto (GitHub)](https://github.com/openboleto/openboleto)
+
 
 ## See also
 

+ 1 - 1
docs/Customizing/QROutputAbstract.md

@@ -211,7 +211,7 @@ class MyOutput extends QROutputAbstract{
 		// loop over the paths
 		foreach($paths as $M_TYPE_LAYER => &$path){
 
-			if(empty($path)){
+			if($path === []){
 				continue;
 			}
 

+ 4 - 3
docs/Usage/Installation.md

@@ -63,7 +63,7 @@ After that, run `composer install` in the package root directory to install the
 Profit!
 
 
-### Can i use this library without using composer?
+### Can I use this library without using composer?
 
 You can, but it's absolutely not recommended, nor supported.
 
@@ -82,8 +82,9 @@ The PHP built-in extensions [GdImage](https://www.php.net/manual/book.image.php)
 
 | version | branch/tag                                                           | PHP              | supported | required extensions | optional extensions                                                                | info                      |
 |---------|----------------------------------------------------------------------|------------------|-----------|---------------------|------------------------------------------------------------------------------------|---------------------------|
-| **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` |                           |
-| **v4**  | [`4.3.4`](https://github.com/chillerlan/php-qrcode/tree/v4.3.x)      | `^7.4 \|\| ^8.0` | yes       | `gd`, `mbstring`    | `imagick`                                                                          |                           |
+| **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` |                           |
+| **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` |                           |
+| **v4**  | [`4.3.4`](https://github.com/chillerlan/php-qrcode/tree/v4.3.x)      | `^7.4 \|\| ^8.0` | no        | `gd`, `mbstring`    | `imagick`                                                                          |                           |
 | **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 |
 | **v2**  | [`2.0.8`](https://github.com/chillerlan/php-qrcode/tree/v2.0.x)      | `>=7.0.3`        | no        | `gd`, `mbstring`    |                                                                                    |                           |
 | **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!     |

+ 4 - 2
docs/Usage/Overview.md

@@ -46,13 +46,15 @@ For the QR Code reader, either `ext-gd` or `ext-imagick` is required!
 - Drupal:
   - [Two-factor Authentication `tfa`](https://www.drupal.org/project/tfa) (Drupal 8+)
   - [Google Authenticator Login `ga_login`](https://www.drupal.org/project/ga_login) (deprecated, Drupal 7)
-- Symfony
+- Laravel:
+  - [Filament](https://github.com/filamentphp/filament)
+- Symfony:
   - [phpqrcode-bundle](https://github.com/jonasarts/phpqrcode-bundle)
 - WordPress:
   - [wp-two-factor-auth](https://github.com/sjinks/wp-two-factor-auth)
   - [simple-2fa](https://wordpress.org/plugins/simple-2fa/)
   - [floating-share-button](https://github.com/qriouslad/floating-share-button)
-- WoltLab Suite
+- WoltLab Suite:
   - [two-step-verification](http://pluginstore.woltlab.com/file/3007-two-step-verification/)
   - [[Developer] PHP QR Code](https://www.woltlab.com/pluginstore/file/7995-entwickler-php-qr-code/)
 - other uses:

+ 2 - 2
docs/qroptions-doc.php

@@ -67,7 +67,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
 	}
 
 	// add a "see also" section
-	if(!empty($see)){
+	if($see !== []){
 		$content[] = "\n**See also:**\n";
 
 		foreach($see as $line){
@@ -96,7 +96,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
 	}
 
 	// add "Links" section
-	if(!empty($link)){
+	if($link !== []){
 		$content[] = "\n**Links:**\n";
 
 		foreach($link as $line){