Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opensoft/epl
https://github.com/opensoft/epl
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opensoft/epl
- Owner: opensoft
- License: mit
- Created: 2011-11-25T01:36:45.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-11-08T03:55:45.000Z (about 8 years ago)
- Last Synced: 2024-11-06T16:00:21.209Z (10 days ago)
- Language: PHP
- Homepage:
- Size: 77.1 KB
- Stars: 10
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The library is a php wrapper for the EPL2 Programming Language. At present do not support all commands EPL2.
[![Build Status](https://travis-ci.org/opensoft/epl.png?branch=master)](https://travis-ci.org/opensoft/epl)
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.
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.
<?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```
Installation on Symfony 2 project
If you use a deps file, add:
[epl]
git=http://github.com/opensoft/epl.gitOr if you want to clone the repos:
git clone git://github.com/opensoft/epl.git vendor/eplAdd the namespace to your autoloader
$loader->registerNamespaces(array(
............
'Epl' => DIR.'/../vendor/epl/src',
...........
));List of commands
EPL
Description
Status
Class
Helper MethodA
ASCII Text
Partial
Epl\Command\Image\AsciiTextCommand
asciiTextAUTOFR
Automatic Form Printing
Not implemented
B
Bar Code
Complete
Epl\Command\Image\BarCodeCommand
barCodeB
RSS-14 Bar Code
Complete
Epl\Command\Image\Rss14BarCodeCommand
rss14BarCodeb
2D Data Matrix Bar Code
Complete
Epl\Command\Image\DataMatrixBarCodeCommand
dataMatrixBarCodeD
Density
Complete
Epl\Command\Stored\DensityCommand
densityI
Character Set Selection
Complete
Epl\Command\Stored\CharacterSetSelectionCommand
characterSetSelectionJB
Disable Top Of Form Backup
Complete
Epl\Command\Stored\DisableTopOfFormBackupCommand
disableTopOfFormBackupJC
Disable Top Of Form Backup - All Cases
Complete
Epl\Command\Stored\DisableTopOfFormBackupAllCasesCommand
disableTopOfFormBackupAllCasesJF
Enable Top Of Form Backup
Complete
Epl\Command\Stored\EnableTopOfFormBackupCommand
enableTopOfFormBackupLE
Line Draw Exclusive OR
Complete
Epl\Command\Image\LineDrawExclusiveORCommand
lineDrawExclusiveORLO
Line draw black
Complete
Epl\Command\Image\LineDrawBlackCommand
lineDrawBlackLS
Line draw diagonal
Complete
Epl\Command\Image\LineDrawDiagonalCommand
lineDrawDiagonalLW
Line draw white
Complete
Epl\Command\Image\LineDrawWhiteCommand
lineDrawWhiteN
Clear Image Buffer
Complete
Epl\Command\Image\ClearImageBufferCommand
clearImageBufferO
Options Select
Complete
Epl\Command\Stored\HardwareOptionCommand
hardwareOptionP
Complete
Epl\Command\PrintCommand
printLabelPA
Print Automatic
Complete
Epl\Command\Form\PrintAutomaticCommand
printAutomaticq
Set Form Width
Complete
Epl\Command\Stored\SetFormWidthCommand
setFormWidthQ
Set Form Length
Complete
Epl\Command\Stored\SetFormLengthCommand
setFormLengthS
Speed Select
Complete
Epl\Command\Stored\SpeedCommand
speedX
Box Draw
Complete
Epl\Command\Image\BoxDrawCommand
boxDrawGW
Direct Graphic Write
Complete
Epl\Command\Image\GraphicWriteCommand
graphicWrite;
Code comment line
Complete
Epl\Command\Form\CommentLineCommand
commentLine