PHPackages                             atans/bpac - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. atans/bpac

ActiveApi

atans/bpac
==========

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

1.0.2(9y ago)142193[1 issues](https://github.com/atans/bpac/issues)MITPHPPHP &gt;=5.4.5

Since Dec 26Pushed 9y ago2 watchersCompare

[ Source](https://github.com/atans/bpac)[ Packagist](https://packagist.org/packages/atans/bpac)[ RSS](/packages/atans-bpac/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

b-PAC PHP Library
=================

[](#b-pac-php-library)

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

Installation
============

[](#installation)

Step 1.Install Labelling SDK (b-PAC)
------------------------------------

[](#step-1install-labelling-sdk-b-pac)

### Download and install [Full b-PAC SDK for developers (SDK, User Guide &amp; sample programs)](http://www.brother.com/product/dev/label/bpac/download/index.htm#full)

[](#download-and-install-full-b-pac-sdk-for-developers-sdk-user-guide--sample-programs)

Step 2.Composer install atans/bpac
----------------------------------

[](#step-2composer-install-atansbpac)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require atans/bpac

```

or add

```
"atans/bpac": "*"

```

to the require section of your `composer.json` file.

Usage
=====

[](#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();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

3410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60739b43662ab8552125fff63bcc53306a71db3ae340fc0b240908c56031f445?d=identicon)[atans](/maintainers/atans)

---

Top Contributors

[![atans](https://avatars.githubusercontent.com/u/2189764?v=4)](https://github.com/atans "atans (10 commits)")

---

Tags

printerbrotherptouch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atans-bpac/health.svg)

```
[![Health](https://phpackages.com/badges/atans-bpac/health.svg)](https://phpackages.com/packages/atans-bpac)
```

###  Alternatives

[mike42/escpos-php

PHP receipt printer library for use with ESC/POS-compatible thermal and impact printers

2.7k1.9M22](/packages/mike42-escpos-php)[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)[ergebnis/json-printer

Provides a JSON printer, allowing for flexible indentation.

9138.2M24](/packages/ergebnis-json-printer)[ramytalal/label-printer

An implementation of the Brother label printer API.

6641.8k](/packages/ramytalal-label-printer)[diablomedia/phpunit-pretty-printer

A PHPUnit result printer that shows per-file test progress and execution times

78515.2k5](/packages/diablomedia-phpunit-pretty-printer)[php-aidc/label-printer

Easily create and print labels on various label printers

5922.0k](/packages/php-aidc-label-printer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
