2017 © Pedro Peláez
 

yii2-extension yii2-pdflabel

Extension to print labels with PDF

image

weesee/yii2-pdflabel

Extension to print labels with PDF

  • Tuesday, January 23, 2018
  • by WeeSee
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii2-PdfLabel

Yii2 Widget to print labels on PDF, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist weesee/yii2-pdflabel "*"

or add, (*4)

"weesee/yii2-pdflabel": "*"

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

Usage

Once the extension is installed, simply use it in your code by:, (*6)

View:, (*7)

<?php
    echo Html::a("Download Label-PDF",['site/downloadpdf']);
?>

Controller (assuming we have a DataProvider $labelDataProvider (here: an ArrayDataProvider) with models containing name and town properties):, (*8)

use weesee\pdflabel\PdfLabel;
...
public function actionDownloadpdf()
$pdfLabel = new PdfLabel([
    'labelName' => '5160',
    'dataProvider' => $labelDataProvider,
    'renderLabel' => function($model, $key, $index) {
        return $model["name"]."\n".$model["town"];
    },
]);
return $pdfLabel->render();

Credits

Thanks for your great job which this Yii2-extension is build on:, (*9)

Author / Licence

WeeSee weesee@web.de, (*10)

GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007, (*11)

The Versions

23/01 2018

dev-docs

dev-docs

Extension to print labels with PDF

  Sources   Download

GPL-3.0-only

The Requires

 

by Avatar WeeSee

yii2 pdf print label

23/01 2018

dev-master

9999999-dev

Extension to print labels with PDF

  Sources   Download

GPL-3.0-only

The Requires

 

by Avatar WeeSee

yii2 pdf print label

23/01 2018

v0.2.1

0.2.1.0

Extension to print labels with PDF

  Sources   Download

GPL-3.0-only

The Requires

 

by Avatar WeeSee

yii2 pdf print label

21/01 2018

v0.2

0.2.0.0

Extension to print labels with PDF

  Sources   Download

GPL-3.0-only

The Requires

 

by Avatar WeeSee

yii2 pdf print label

20/01 2018

v0.1

0.1.0.0

Extension to print labels with PDF

  Sources   Download

GNU General Public License v3.0

The Requires

 

by Avatar WeeSee

yii2 pdf print label