2017 © Pedro Peláez
 

library epl

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

image

opensoft/epl

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

  • Tuesday, November 8, 2016
  • by fightmaster
  • Repository
  • 4 Watchers
  • 8 Stars
  • 10,353 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2., (*1)

Build Status, (*2)

Usage:


<?php
use Epl\CommandComposite;
use Epl\CommandHelper;

$composite = new Composite();
$commandHelper = new CommandHelper($composite);
//Draw new line
$commandHelper->lineDrawBlack(50, 200, 400, 20);
//Draw other line
$commandHelper->lineDrawBlack(200, 50, 20, 400);
//Print 1 label
$commandHelper->print(1);
//Get EPL string
$eplString = $commandHelper->toEplString();

To implement the commands necessary to implement Epl\CommandInterface., (*3)

For convenience of use EPL commands there is a CommandHelper. It hides the implementation EPL commands. But you can direct way to instantiate the command., (*4)

<?php
use Epl\Command\PrintCommand;
use Epl\Command\CommandComposite;

$commandComposite = new CommandComposite();
$printCommand = new PrintCommand(1);
$commandComposite->addCommand($printCommand);
$eplString = $commandComposite->toEplString();

Installation

php composer.phar require opensoft/epl, (*5)

Installation on Symfony 2 project

If you use a deps file, add:, (*6)

[epl]
    git=http://github.com/opensoft/epl.git

Or if you want to clone the repos:, (*7)

git clone git://github.com/opensoft/epl.git vendor/epl

Add the namespace to your autoloader, (*8)

$loader->registerNamespaces(array(
    ............
    'Epl'   => DIR.'/../vendor/epl/src',
    ...........
));

List of commands

EPL Description Status Class Helper Method
A ASCII Text Partial Epl\Command\Image\AsciiTextCommand asciiText
AUTOFR Automatic Form Printing Not implemented
B Bar Code Complete Epl\Command\Image\BarCodeCommand barCode
B RSS-14 Bar Code Complete Epl\Command\Image\Rss14BarCodeCommand rss14BarCode
b 2D Data Matrix Bar Code Complete Epl\Command\Image\DataMatrixBarCodeCommand dataMatrixBarCode
D Density Complete Epl\Command\Stored\DensityCommand density
I Character Set Selection Complete Epl\Command\Stored\CharacterSetSelectionCommand characterSetSelection
JB Disable Top Of Form Backup Complete Epl\Command\Stored\DisableTopOfFormBackupCommand disableTopOfFormBackup
JC Disable Top Of Form Backup - All Cases Complete Epl\Command\Stored\DisableTopOfFormBackupAllCasesCommand disableTopOfFormBackupAllCases
JF Enable Top Of Form Backup Complete Epl\Command\Stored\EnableTopOfFormBackupCommand enableTopOfFormBackup
LE Line Draw Exclusive OR Complete Epl\Command\Image\LineDrawExclusiveORCommand lineDrawExclusiveOR
LO Line draw black Complete Epl\Command\Image\LineDrawBlackCommand lineDrawBlack
LS Line draw diagonal Complete Epl\Command\Image\LineDrawDiagonalCommand lineDrawDiagonal
LW Line draw white Complete Epl\Command\Image\LineDrawWhiteCommand lineDrawWhite
N Clear Image Buffer Complete Epl\Command\Image\ClearImageBufferCommand clearImageBuffer
O Options Select Complete Epl\Command\Stored\HardwareOptionCommand hardwareOption
P Print Complete Epl\Command\PrintCommand printLabel
PA Print Automatic Complete Epl\Command\Form\PrintAutomaticCommand printAutomatic
q Set Form Width Complete Epl\Command\Stored\SetFormWidthCommand setFormWidth
Q Set Form Length Complete Epl\Command\Stored\SetFormLengthCommand setFormLength
S Speed Select Complete Epl\Command\Stored\SpeedCommand speed
X Box Draw Complete Epl\Command\Image\BoxDrawCommand boxDraw
GW Direct Graphic Write Complete Epl\Command\Image\GraphicWriteCommand graphicWrite
; Code comment line Complete Epl\Command\Form\CommentLineCommand commentLine

The Versions

08/11 2016

dev-master

9999999-dev

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dmitry Petrov

php epl2 epl

08/02 2016

1.0.2

1.0.2.0

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dmitry Petrov

php epl2 epl

04/06 2013

1.0.1

1.0.1.0

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dmitry Petrov

php epl2 epl

18/02 2013

1.0.0

1.0.0.0

The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dmitry Petrov

php epl2 epl