PHP code example of dynamsoft / javascript-barcode

1. Go to this page and download the library: Download dynamsoft/javascript-barcode 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/ */

    

dynamsoft / javascript-barcode example snippets

js
      cvRouter.startCapturing("ReadSingleBarcode");
      
js
// Using the global namespace
Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
javascript
let settings = await cvRouter.getSimplifiedSettings("ReadSingleBarcode");
settings.outputOriginalImage = true;
settings.barcodeSettings.barcodeFormatIds = Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
await cvRouter.updateSettings("ReadSingleBarcode", settings);
await cvRouter.startCapturing("ReadSingleBarcode");