Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing mutliple QROptions #10

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Allow passing mutliple QROptions #10

merged 1 commit into from
Dec 14, 2021

Conversation

ali-alharthi
Copy link
Contributor

I have seen #7 which is great 👍🏼
However, it would be more efficient passing all the options according to the user needs (since QROptions has multiple options).
Also, this allows the user to utilize any added features to the chillerlan\QRCode package in the future 💡

An example for scale would be:

$displayQRCodeAsBase64 = GenerateQrCode::fromArray([
.....
])->render(['scale' => 3]);

PS. Thanks for this simple yet elegant solution .. you saved a lot of time for many developers including myself ❤️

I have seen #7 which is great 👍🏼 
However, it would be more efficient passing all the options according to the user needs (since QROptions has multiple options).
Also, this allows the user to utilize any added features to the `chillerlan\QRCode` package in the future 💡 

An example for scale would be:
```php
$displayQRCodeAsBase64 = GenerateQrCode::fromArray([
.....
])->render(['scale' => 3]);
```

PS. Thanks for this simple yet elegant solution .. you saved a lot of time for many developers including myself ❤️
@salkhwlani salkhwlani merged commit 70f548d into SallaApp:master Dec 14, 2021
@salkhwlani
Copy link
Member

@ali-alharthi thanks, this will introduce a brack change, will be released under v2.0

@ali-alharthi
Copy link
Contributor Author

@salkhwlani understandable 👍🏼

@salkhwlani
Copy link
Member

@ali-alharthi https://github.com/SallaApp/ZATCA/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants