Check out example codes for "create qr code png image of 200*200 using phpqrcode". It will help you in understanding the concepts better.

Code Example 1

QRlib.php also does support SVG, doesn't it?

https://github.com/t0k4rt/phpqrcode

require_once(__DIR__.'/phpqrcode-master/qrlib.php');
echo QRcode::svg('hello');

Learn ReactJs, React Native from akashmittal.com