revosystems/product-label
最新稳定版本:v1.1.1
Composer 安装命令:
composer require revosystems/product-label
包简介
README 文档
README
RevoSystems package to print labels from Revo Retail admin.
Installation
Modify composer json to include productLabel repository
"repositories": [
{
"type": "vcs",
"url": "git@github.com:revosystems/productLabel.git"
}
],
Install productLabel with composer.
composer require revosystems/productLabel
Recommended usage
// Pass a json decoded label and products list to de LabelPage renderer.
$html = ProductLabelPage::make($label)->render($products);
// Now we can use any HtmlToPDF library to render it.
$pdf = SnappyPdf::loadHtml($html)
->setOption('zoom', 1.5636) // Avoid html resize when printing.
->setOption('margin-top', 0)->setOption('margin-bottom', 0)
->setOption('margin-left', 0)->setOption('margin-right', 0);
return $pdf->inline('invoice.pdf');
Available papers:
[
"1274" => ["width" => 105.0, "height" => 37.130 ], //Default label size 105 37.0
"1284" => ["width" => 52.5, "height" => 21.216 ], //Default label size 52.5 21.2
"1286" => ["width" => 52.5, "height" => 29.706 ], //Default label size 52.5 29.7
];
统计信息
- 总下载量: 7.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-04-20