Thanks to kreativekorp on github for his barcode.phpYou can find the library on Github
barcode.php
You can find more docs for options here. But if you want a simple QRCode, you can let the options like that.