PHP code example of marceauka / laravel-qr-code

1. Go to this page and download the library: Download marceauka/laravel-qr-code library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marceauka / laravel-qr-code example snippets


 
 
 'providers' => [     
       
     LaravelQRCode\Providers\QRCodeServiceProvider::class,     
   
 ],

 
 'aliases' => [
    
    'QRCode' => LaravelQRCode\Facades\QRCode::class,     
       
 ] 
 

  
  
  Route::get('qr-code', function () 
  {
    return QRCode::text('QR Code Generator for Laravel!')->png();    
  });