{"action":"opened","issue":{"url":"https://api.github.com/repos/relrod/dagd/issues/23","labels_url":"https://api.github.com/repos/relrod/dagd/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/relrod/dagd/issues/23/comments","events_url":"https://api.github.com/repos/relrod/dagd/issues/23/events","html_url":"https://github.com/relrod/dagd/issues/23","id":100114276,"number":23,"title":"QR code generation","user":{"login":"relrod","id":43930,"avatar_url":"https://avatars.githubusercontent.com/u/43930?v=3","gravatar_id":"","url":"https://api.github.com/users/relrod","html_url":"https://github.com/relrod","followers_url":"https://api.github.com/users/relrod/followers","following_url":"https://api.github.com/users/relrod/following{/other_user}","gists_url":"https://api.github.com/users/relrod/gists{/gist_id}","starred_url":"https://api.github.com/users/relrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relrod/subscriptions","organizations_url":"https://api.github.com/users/relrod/orgs","repos_url":"https://api.github.com/users/relrod/repos","events_url":"https://api.github.com/users/relrod/events{/privacy}","received_events_url":"https://api.github.com/users/relrod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T16:50:12Z","updated_at":"2015-08-10T16:50:12Z","closed_at":null,"body":"I've wanted to add a `qr` application to dagd for quite some time. Most of the QR code generation libraries in existence, with bindings for PHP, are either:\r\n\r\n- LGPL licensed -- which we cannot include.\r\n- >1k lines of code -- which, given that dagd is currently PHP, is really scary to depend on.\r\n\r\nIn addition to the above, we have in general been following Not-Invented-Here and implementing everything ourselves anyway (e.g. see the `whois` app where we implement our own whois client).\r\n\r\nSo I suspect this comes down to me reading about how QR codes are generated, and writing the simplest possible implementation of a generation library. I will probably prototype it out in Haskell (which works since dagd is moving to Haskell at some point anyway), and then backport it to PHP.\r\n\r\nThis would be a separate application but we could also have it optionally show QR codes when a shorturl is requested, by e.g. passing: ?qr=1 (and having a checkbox on the html form set that)."}}