Open n00bsi opened 9 months ago
Hi, your proposal is very interesting. I invite you to contribute to the project
Hi,
I have the same idea and start to fork another project called go-qrcode: https://github.com/tranmh/go-qrcode/blob/master/qrcode-restapi/main.go
go-qrcode has now a restapi and your code at line: https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/blob/master/src/lib/Qrcode/Qrcode.php#L83
can call it using: $url = 'http://localhost:6868/api/qrcode?data=https%3A%2F%2Fsvw.info&size=256';
What is your expectation? I assume we need go-qrcode with restapi as git submodule. What else do you need to accept a pull request?
Thx.
Hi, the creation method you propose doesn't have the same customization possibilities (or better) that are currently in use, so it's not good
Sure, wait for the other Pull Request: https://github.com/skip2/go-qrcode/pull/66
If this PR is going into their repo, I will extend the customization possibilities. Which of those is a must-have for you?
I want the actual customization of my script. Thanks
In PR https://github.com/skip2/go-qrcode/pull/66 I added another improvement: "add support for ecc aka recovery level, color and background-color". and would look like this: http://localhost:6868/api/qrcode?data=abc&size=800&color=00FF00&bgcolor=FF00FF&ecc=L
Is it already working?
yes. PR is not accept yet, but I tested on my local machined.
Ok then write to me when it is accepted please
Change would be: https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/blob/master/src/lib/Qrcode/Qrcode.php#L83
$url =
'https://api.qrserver.com/v1/create-qr-code/?data='.
$data_to_qrcode.
'&&size='.$options['size'].'x'.$options['size'].
'&ecc='.$options['errorCorrectionLevel'].
'&margin=0&color='.$options['foreground'].
'&bgcolor='.$options['background'].
'&qzone=2'.
'&format='.$data_to_db['format'];
$url =
'http://localhost:6868/api/qrcode?data='.
$data_to_qrcode.
'&size='.$options['size'].
'&color='.$options['foreground'].
'&bgcolor='.$options['background'].
'&ecc='.$options['errorCorrectionLevel'];
I saw that the format is missing. Many of my users need all the formats that my script offers. Does this new generation method have them? For example EPS
https://github.com/skip2/go-qrcode/pull/66 have now the following two formats: png and svg. More will hopefully come.
Ok let me know when the other formats will be available
Hi,
nice project ... but
is it possible to have a self-hosted qr-generator insted of api.qrserver.com ?
That was also my first thought when I read the information in the documentation that the data is sent to an external service provider. 😮 This is not nice and completely unnecessary, as there are enough offline projects
Hi, I use this PHP QR Code (chillerlan/php-qrcode) now. ... I have implemented the project in your project.
Hello, is it possible to have a self-hosted qr-generator insted of api.qrserver.com ? So that no external service is need. So that no external dependencies are needed.
is it possible to use the tool: qrencode