PHP code example of ozznest / barcode-bundle

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

    

ozznest / barcode-bundle example snippets


    public function registerBundles()
    {
        $bundles = [
            ...
            new Markup\BarcodeBundle\MarkupBarcodeBundle(),
        ];
        ...
    }
bash
$ php composer.phar update markup/barcode-bundle
html+jinja
    <img src="{{ barcode_text_you_are_encoding|markup_barcode_data_uri('invoice') }}">