Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Nov 13, 2023
1 parent c7b3d01 commit 3ac0a87
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ The bundle provides a Twig extension for generating a QR code URL, path or data
URI. You can use the second argument to specify the builder to use.

```twig
<img src="{{ qr_code_path('My QR Code') }}">
<img src="{{ qr_code_url('My QR Code') }}">
<img src="{{ qr_code_data_uri('My QR Code') }}">
<img src="{{ qr_code_path('My QR Code') }}" />
<img src="{{ qr_code_url('My QR Code') }}" />
<img src="{{ qr_code_data_uri('My QR Code') }}" />
{# You can specify the builder via the second parameter #}
<img src="{{ qr_code_data_uri('My QR Code', 'custom') }}">
<img src="{{ qr_code_data_uri('My QR Code', 'custom') }}" />
{# Access the QR code's width & height via the `matrix` object #}
{# You can access the width and height via the matrix #}
{% set qrCode = qr_code_result('My QR Code') %}
<img src="{{ qrCode.dataUri }}" width="{{ qrCode.matrix.outerSize }}" height="{{ qrCode.matrix.outerSize }}" alt="My QR Code">
<img src="{{ qrCode.dataUri }}" width="{{ qrCode.matrix.outerSize }}" />
```

## Versioning
Expand Down

0 comments on commit 3ac0a87

Please sign in to comment.