Installation

Then, require the vendor/autoload.php file to enable the autoloading mechanism
provided by Composer. Otherwise, your application won't be able to find the
classes of this library.

Of course you can also download the library and build your own autoloader.

Usage

useEndroid\QrCode\QrCode;$qrCode=newQrCode();$qrCode->setText('Life is too short to be generating QR codes')->setSize(300)->setPadding(10)->setErrorCorrection('high')->setForegroundColor(array('r'=>0, 'g'=>0, 'b'=>0, 'a'=>0))->setBackgroundColor(array('r'=>255, 'g'=>255, 'b'=>255, 'a'=>0))->setLabel('Scan the code')->setLabelFontSize(16)->setImageType(QrCode::IMAGE_TYPE_PNG);// now we can directly output the qrcodeheader('Content-Type: '.$qrCode->getContentType());$qrCode->render();// save it to a file$qrCode->save('qrcode.png');// or create a response object$response=newResponse($qrCode->get(), 200, array('Content-Type'=>$qrCode->getContentType()));

Symfony

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility
breaking changes will be kept to a minimum but be aware that these can occur.
Lock your dependencies for production and test your code when upgrading.

License

This bundle is under the MIT license. For the full copyright and license
information please view the LICENSE file that was distributed with this source code.