2017 © Pedro Peláez
 

yii2-extension barcode

Barcode coder

image

mrssoft/barcode

Barcode coder

  • Tuesday, May 8, 2018
  • by mrs2000
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Barcode coder

Documentation, (*1)

Installation

The preferred way to install this extension is through composer. Either run, (*2)

php composer.phar require --prefer-dist mrssoft/barcode "*"

or add, (*3)

"mrssoft/barcode": "*"

to the require section of your composer.json file., (*4)

Usage

    public function actionBarcode($ean13 = null, $width = 250, $height = 100)
    {
        $im = imagecreatetruecolor($width, $height);
        $black = imagecolorallocate($im, 0x00, 0x00, 0x00);
        $white = imagecolorallocate($im, 0xff, 0xff, 0xff);
        imagefilledrectangle($im, 0, 0, $width, $height, $white);

        if (!empty($ean13)) {
            Barcode::gd($im, $black, $width / 2, $height / 2, 0, 'ean13', $ean13, 2, $height);
        }

        header('Content-Type: image/png');
        imagepng($im);
        imagedestroy($im);
        eixt();
    }

The Versions

08/05 2018

dev-master

9999999-dev

Barcode coder

  Sources   Download

MIT

The Requires

  • php >=7.1

 

by Melnikov Ruslan

barcode ean code128

08/05 2018

1.0.0

1.0.0.0

Barcode coder

  Sources   Download

MIT

The Requires

  • php >=7.1

 

by Melnikov Ruslan

barcode ean code128