2017 © Pedro PelĂĄez
 

library dmpl-builder

Compile machine instructions in DM/PL format for plotters and printers.

image

nielsiano/dmpl-builder

Compile machine instructions in DM/PL format for plotters and printers.

  • Monday, November 13, 2017
  • by nielsiano
  • Repository
  • 1 Watchers
  • 7 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 4 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

DmplBuilder

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score SensioLabsInsight ![Total Downloads][ico-downloads], (*1)

DmplBuilder eases the process of creating DM/PL command instructions used for hardware pen plotters and cutters. Read more about the specific commands in this very modern manual by Summa., (*2)

Install

Via Composer, (*3)

``` bash $ composer require nielsiano/dmpl-builder, (*4)


## Requirements The following versions of PHP are supported by this version. * PHP 7.0 ## Usage DmplBuilder uses a fluent interface to chain all commands and plots before compiling the final instructions. ``` php $builder = new Nielsiano\DmplBuilder(); $builder->penUp() ->plot(200, 200) ->penDown() ->velocity(100) ->flexCut() ->plot(0, 1400) ->plot(1900, 0) ->plot(0, -1400) ->plot(-1900, 0) ->penUp() ->cutOff(); return $builder->compile();

Sending the generated DM/PL instructions to your plotter through USB can be done like so:, (*5)

``` php echo ';: ECM,U H L0,P0;A100,100,V10;BP50;D,0,1400,1900,0,e' > /dev/usb/lp0, (*6)


Available methods at the moment: ``` php $builder->penUp() $builder->cutOff() $builder->penDown() $builder->flexCut() $builder->flipAxes() $builder->regularCut() $builder->changePen(int $pen) $builder->plot(int $x, int $y) $builder->compile(): string $builder->setMeasuringUnit($unit) $builder->velocity(int $velocity) $builder->pressure(int $gramPressure) $builder->pushCommand(string $command)

Change log

Please see CHANGELOG for more information what has changed recently., (*7)

Testing

bash $ phpunit, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please email nielsstampe@gmail.com instead of using the issue tracker., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/nielsiano/dmpl-builder

Compile machine instructions in DM/PL format for plotters and printers.

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

nielsiano niels stampe dmplbuilder dmpl summa summacut plotter

01/06 2016

1.0.1

1.0.1.0 https://github.com/nielsiano/dmpl-builder

Compile machine instructions in DM/PL format for plotters and printers.

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

nielsiano niels stampe dmplbuilder dmpl summa summacut plotter

28/05 2016

1.0.0

1.0.0.0 https://github.com/nielsiano/dmpl-builder

Compile machine instructions in DM/PL format for plotters and printers.

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

nielsiano niels stampe dmplbuilder dmpl summa summacut plotter