Currently i'm using class from https://github.com/endroid/qr-code
i put below code as sample from github :
$qrCode = new QrCode('Life is too short to be generating QR codes');
header('Content-Type: '.$qrCode->getContentType());
echo $qrCode->writeString();
I put $qrCode->setWriterByExtension('svg'); and it's working