api bpac
Brother label printing b-PAC php library (Windows Only)
atans/bpac
Brother label printing b-PAC php library (Windows Only)
- Tuesday, January 10, 2017
- by atans
- Repository
- 1 Watchers
- 0 Stars
- 43 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 2 Open issues
- 4 Versions
- 26 % Grown
b-PAC PHP Library
Brother label printing b-PAC php library (Windows Only), (*1)
Installation
Step 1.Install Labelling SDK (b-PAC)
Step 2.Composer install atans/bpac
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
composer require atans/bpac
or add, (*4)
"atans/bpac": "*"
to the require section of your composer.json
file., (*5)
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();
dev-master
9999999-dev
Brother label printing b-PAC php library (Windows Only)
Sources
Download
MIT
The Requires
-
php >=5.4.5
-
ext-com_dotnet *
The Development Requires
by
atans
printer
brother
ptouch
1.0.2
1.0.2.0
Brother label printing b-PAC php library (Windows Only)
Sources
Download
MIT
The Requires
-
php >=5.4.5
-
ext-com_dotnet *
The Development Requires
by
atans
printer
brother
ptouch
1.0.1
1.0.1.0
Brother label printing b-PAC php library (Windows Only)
Sources
Download
MIT
The Requires
-
php >=5.4.5
-
ext-com_dotnet *
The Development Requires
by
atans
printer
brother
ptouch
1.0.0
1.0.0.0
Brother label printing b-PAC php library (Windows Only)
Sources
Download
MIT
The Requires
-
php >=5.4.5
-
ext-com_dotnet *
The Development Requires
by
atans
printer
brother
ptouch