PHP code example of adamgaskins / barcoder

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

    

adamgaskins / barcoder example snippets


Barcoder::qrcode('data to encode')->toSvg();

Barcoder::datamatrix('data to encode')->toSvg();

Barcoder::code128('data to encode')->toSvg();

Barcoder::code128('data to encode')->hideLabel()->toSvg();

Barcoder::ean8('12345678')->toSvg();

Barcoder::ean8('12345678')->hideLabel()->toSvg();

Barcoder::ean8('1234567890123')->toSvg();

Barcoder::ean8('1234567890123')->hideLabel()->toSvg();

Barcoder::upca('123456789012')->toSvg();

Barcoder::upca('123456789012')->hideLabel()->toSvg();

Barcoder::upce('123456')->toSvg();

Barcoder::upce('123456')->hideLabel()->toSvg();