定制 atans/bpac 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atans/bpac

Composer 安装命令:

composer require atans/bpac

包简介

Brother label printing b-PAC php library (Windows Only)

README 文档

README

Brother label printing b-PAC php library (Windows Only)

Installation

Step 1.Install Labelling SDK (b-PAC)

Download and install Full b-PAC SDK for developers (SDK, User Guide & sample programs)

Step 2.Composer install atans/bpac

The preferred way to install this extension is through composer.

Either run

composer require atans/bpac

or add

"atans/bpac": "*"

to the require section of your composer.json file.

Usage

use atans\bpac\Printer;
use atans\bpac\Document;

$printer = new Printer();
$installedPrinters = $printer->GetInstalledPrinters();

// Same as
// $printer = new Com('bpac.Printer'));
// $installedPrinters = $printer->GetInstalledPrinters();


// Print label using lbx template

$document = new Document();

$document->Open(realpath(__DIR__ . '/tests/assets/device.lbx'))

$document->GetObject('brand')->Text = 'ThinkPad';

$document->StartPrint('', PrintOptionConstants::bpoDefault);
$document->PrintOut(1, PrintOptionConstants::bpoDefault);
$document->EndPrint();
$document->Close();

统计信息

  • 总下载量: 219
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固