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

I just want to save the file #27

Closed
ftrotter opened this issue Oct 19, 2018 · 2 comments
Closed

I just want to save the file #27

ftrotter opened this issue Oct 19, 2018 · 2 comments

Comments

@ftrotter
Copy link

I do not want to display or output anything.
I am sure there is a way, but I cannot easily see it in the documentation or the examples.

-FT

@zzplab
Copy link

zzplab commented Oct 19, 2018

chillerlan/php-qrcode#advanced-usage

// ...with additional cache file
$qrcode->render($data, '/path/to/file.png');

@codemasher
Copy link
Member

codemasher commented Oct 19, 2018

See #19.
Since v3.0 you can also issue a cache file path via QRCode::render(string $data, string $file = null).

edit: thank you @zzplab!

edit2:
Note that the file extension/type won't be checked. You need to make sure that the output type matches the file extension.

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

No branches or pull requests

3 participants