[GH-ISSUE #17] feature request: using qrcodejs to remove dependency simplesoftwareio/simple-qrcode #476

Closed
opened 2026-03-14 11:53:03 +03:00 by kerem · 13 comments
Owner

Originally created by @ryh on GitHub (Oct 25, 2015).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/17

feature request: using qrcodejs to remove dependency simplesoftwareio/simple-qrcode

show QRCode is a front-end need, so it is reasonable to achieve it in Client Side with javascript.
qrcodejs is a perfect solution for this.
(leave the show QRCode task to the front-end guy 🎃 )
ext-gd and simplesoftwareio/simple-qrcode are heavy dependency for 2fa server side package

Originally created by @ryh on GitHub (Oct 25, 2015). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/17 feature request: using `qrcodejs` to remove dependency `simplesoftwareio/simple-qrcode` show QRCode is a front-end need, so it is reasonable to achieve it in `Client Side` with javascript. [qrcodejs](https://github.com/davidshimjs/qrcodejs) is a perfect solution for this. (leave the show QRCode task to the front-end guy :jack_o_lantern: ) ext-gd and simplesoftwareio/simple-qrcode are _heavy_ dependency for 2fa server side package
kerem closed this issue 2026-03-14 11:53:08 +03:00
Author
Owner

@antonioribeiro commented on GitHub (Nov 7, 2015):

I can do that.

Is everyone okay with removing it?

<!-- gh-comment-id:154707533 --> @antonioribeiro commented on GitHub (Nov 7, 2015): I can do that. Is everyone okay with removing it?
Author
Owner

@nathanmac commented on GitHub (Nov 19, 2015):

👍

<!-- gh-comment-id:158103611 --> @nathanmac commented on GitHub (Nov 19, 2015): :+1:
Author
Owner

@cpwc commented on GitHub (Nov 21, 2015):

👍

<!-- gh-comment-id:158627969 --> @cpwc commented on GitHub (Nov 21, 2015): :+1:
Author
Owner

@vinicius73 commented on GitHub (Jan 2, 2016):

👍

<!-- gh-comment-id:168355467 --> @vinicius73 commented on GitHub (Jan 2, 2016): :+1:
Author
Owner

@aik099 commented on GitHub (Mar 11, 2016):

The dependency can be moved to suggest part in composer.json. Then in places, where library is used the exception can be thrown, when dependency isn't installed.

<!-- gh-comment-id:195367555 --> @aik099 commented on GitHub (Mar 11, 2016): The dependency can be moved to `suggest` part in `composer.json`. Then in places, where library is used the exception can be thrown, when dependency isn't installed.
Author
Owner

@it-can commented on GitHub (Jun 1, 2016):

👍

<!-- gh-comment-id:223021512 --> @it-can commented on GitHub (Jun 1, 2016): 👍
Author
Owner

@aik099 commented on GitHub (Jun 1, 2016):

Anyone doing 👍 are welcome to send a PR as well.

<!-- gh-comment-id:223043880 --> @aik099 commented on GitHub (Jun 1, 2016): Anyone doing 👍 are welcome to send a PR as well.
Author
Owner

@barryvdh commented on GitHub (Jul 17, 2016):

The dependency is a little bit less heavy now with #36, but you could still submit a PR if you need.

<!-- gh-comment-id:233194882 --> @barryvdh commented on GitHub (Jul 17, 2016): The dependency is a little bit less heavy now with #36, but you could still submit a PR if you need.
Author
Owner

@antonioribeiro commented on GitHub (Jul 17, 2016):

Moved to suggest. I will probably tag 1.0 soon, as this is a breaking change.

I could tag it 0.9, but it would not break only if people is requiring ^0.8, instead of ~0.8.

So, should I still tag a minor?

<!-- gh-comment-id:233207492 --> @antonioribeiro commented on GitHub (Jul 17, 2016): Moved to suggest. I will probably tag 1.0 soon, as this is a breaking change. I could tag it 0.9, but it would not break **only** if people is requiring `^0.8`, instead of `~0.8`. So, should I still tag a minor?
Author
Owner

@GrahamCampbell commented on GitHub (Jul 17, 2016):

People who have ~0.8 would expect it to be broken. They are doing that knowing that it could break. I'd say just break it in 0.9.0.

<!-- gh-comment-id:233210938 --> @GrahamCampbell commented on GitHub (Jul 17, 2016): People who have `~0.8` would expect it to be broken. They are doing that knowing that it could break. I'd say just break it in 0.9.0.
Author
Owner

@antonioribeiro commented on GitHub (Jul 17, 2016):

Whoops! Just tagged it 1.0.0 :/

<!-- gh-comment-id:233211057 --> @antonioribeiro commented on GitHub (Jul 17, 2016): Whoops! Just tagged it 1.0.0 :/
Author
Owner

@antonioribeiro commented on GitHub (Jul 17, 2016):

Not everyone knows the difference between ~ and ^ on composer when the major version == 0. I myself had some pain with it a while ago.

<!-- gh-comment-id:233211249 --> @antonioribeiro commented on GitHub (Jul 17, 2016): Not everyone knows the difference between ~ and ^ on composer when the major version == 0. I myself had some pain with it a while ago.
Author
Owner

@barryvdh commented on GitHub (Jul 18, 2016):

If they don't know the difference, they should just use 0.8.x ;) But this is fine too :)

<!-- gh-comment-id:233244985 --> @barryvdh commented on GitHub (Jul 18, 2016): If they don't know the difference, they should just use `0.8.x` ;) But this is fine too :)
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#476
No description provided.