Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/cwpsrv/var/services/roundcube/vendor/endroid/qr-code/ |
Upload File : |
QR Code ======= *By [endroid](http://endroid.nl/)* [](https://packagist.org/packages/endroid/qrcode) [](http://travis-ci.org/endroid/QrCode) [](https://packagist.org/packages/endroid/qrcode) [](https://packagist.org/packages/endroid/qrcode) This library based on QRcode Perl CGI & PHP scripts by Y. Swetake helps you generate images containing a QR code. ## Installation Use [Composer](https://getcomposer.org/) to install the library. ``` bash $ composer require endroid/qrcode ``` ## Usage ```php <?php use Endroid\QrCode\QrCode; $qrCode = new QrCode(); $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('My label') ->setLabelFontSize(16) ->render() ; ```  ## Symfony You can use [`EndroidQrCodeBundle`](https://github.com/endroid/EndroidQrCodeBundle) to integrate this service in your Symfony application. ## Versioning Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible 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.