Boca Printer Library

Installs: 356

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 1

Open Issues: 0

pkg:composer/phillipsdata/boca

1.0.0 2015-05-21 17:35 UTC

This package is auto-updated.

Last update: 2025-09-23 12:12:11 UTC


README

#Boca

A library for interfacing with Boca printers.

Requirements

  • PHP >=5.3

Installation

Install the package using Composer. Edit your project's composer.json file to require phillipsdata/boca.

  "require": {
    "phillipsdata/boca": "~1.0"
  }

Basic Usage

use PhillipsData\Boca\Connection;
use PhillipsData\Boca\Transport;

$connection = new Connection('tcp://127.0.0.1:9100');
$connection->open();

$transport = new Transport($connection);
$response = $transport->send('<MAC>\n\n');

$connection->close();
echo $response; // outputs something like: MAC Address: 00:0D:00:00:01