Installation

Program and Extensions

The following programs and extensions must be installed:

  • PHP7
  • GD2 Extension
  • BCMath (for PDF417, and Intelligent Mail only)

Download

You can find our software in our Download section. If you wish to download 2D barcodes or use our software for a commercial purposes, you must purchase a license.

Installing with Composer

Starting with the first version released in 2018, all of our software can be loaded with Composer. However, our files are not distributed on Packagist. You must download the required files from our server.
Create a composer.json file and write the following:


{
    "require": {
        "barcode-bakery/barcode-common": "*",
        "barcode-bakery/barcode-1d": "*"
    },
    "repositories": [
        {
            "type": "path",
            "url": "..\\packages\\barcode-common"
        },
        {
            "type": "path",
            "url": "..\\packages\\barcode-1d"
        }
    ]
}

In the console, type the following:


composer install

Load the autoload.php file at the top of the file then start using our library.


<?php
require __DIR__ . '/vendor/autoload.php';

The other libraries are available for purchase, they and can be installed with Composer as such:


{
    "require": {
        "barcode-bakery/barcode-common": "*",
        "barcode-bakery/barcode-qrcode": "*"
    },
    "repositories": [
        {
            "type": "path",
            "url": "..\\packages\\barcode-common"
        },
        {
            "type": "path",
            "url": "..\\path-to-qrcode\\barcode-qrcode"
        }
    ]
}

Installing Without Composer

If you do not use Composer, you can simply require each necessary file with a require_once method.
The manual will assume you have loaded the appropriate files.

Fonts

To add other fonts, simply copy .ttf fonts to the font folder.