Some days ago an artist friend from the yard where we work ask me to print a barcode to link to a song hosted in a server.
Why a barcode for an artist? Well he paint music but this is a matter for another story… here a link for his blog: http://davidcowleyart.co.uk/html/
You can find lots of sites online to create the barcode with the link you need
https://www.barcodesinc.com/generator/qr/?chl=open-ecommerce.org%2Fmusic%2Fallegro-ma-non-troppo.mp3&chs=200×200&cht=qr&chld=H%7C0
or even nicer with all the codes types for phones like sms, call, link etc:
http://www.voindo.eu/UltimateBarcodeGenerator/_generator.php
but if you want to generate the image on the fly in your page you can use the google api to do it
create an image tag with the following link
src="https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.open-ecommrece.com%2F&choe=UTF-8"
And you will see something like this
more about the api:
https://developers.google.com/chart/infographics/docs/qr_codes?csw=1
another api that probably uses google not sure… but for 8 box looks nice:
http://www.voindo.eu/UltimateBarcodeGenerator/index.php