2017 © Pedro Peláez
 

library dxf

A simple DXF creator for PHP

image

adamasantares/dxf

A simple DXF creator for PHP

  • Thursday, May 3, 2018
  • by adamasantares
  • Repository
  • 1 Watchers
  • 5 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

DXF Creator for PHP

A simple DXF creator for PHP. This code is the upgrade of DXF-Writer., (*1)

Examples

Miscellaneous with image:, (*2)

// Setting image data
$path="./peludito.png";
$size=getimagesize($path);
$width=$size[0];
$height=$size[1];

$dxf = new Creator(Creator::MILLIMETERS);
$dxf->setTextStyle('Consolas Regular', 'consola')
    ->addText(26, 46, 0, 'DXF testing', 8)
    ->setColor(Color::CYAN) // change color of default layer
    ->addLine(25, 0, 0, 100, 0, 0)
    ->addLine(100, 0, 0, 100, 75, 0)
    ->addLine(75, 100, 0, 0, 100, 0)
    ->addLine(0, 100, 0, 0, 25, 0)
    ->setLayer('blue', Color::BLUE, LineType::DASHDOT) // create new layer
    ->addCircle(0, 0, 0, 25)
    ->setLayer('custom', Color::rgb(10, 145, 230), LineType::DASHED)
    ->addCircle(100, 100, 0, 25)
    ->setLayer('red', Color::RED)
    ->addArc(0, 100, 0, 25, 0.0, 270.0)
    ->setLayer('magenta', Color::MAGENTA)
    ->addArc(100, 0, 0, 25, 180.0, 90.0)
    ->setLayer('black')
    ->addPoint(0, 0, 0)
    ->addPoint(0, 100, 0)
    ->addPoint(100, 100, 0)
    ->addPoint(100, 0, 0)
    ->addImage(0, 0, 0, 50, 50, 0, $path, $width, $height)
    ->saveToFile('demo.dxf');

Result:, (*3)

, (*4)

Install by Composer

composer require adamasantares/dxf "0.1.6"

or, (*5)

"require": {
      "adamasantares/dxf": "0.1.6"
  }

The Versions

03/05 2018

dev-master

9999999-dev https://github.com/active-programming/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

26/04 2018

0.1.33

0.1.33.0 https://github.com/active-programming/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

08/09 2017

0.1.32

0.1.32.0 https://github.com/active-programming/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

06/09 2017

0.1.31

0.1.31.0 https://github.com/active-programming/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

09/10 2016

0.1.3

0.1.3.0 https://github.com/adamasantares/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

22/04 2016

0.1.3b

0.1.3.0-beta https://github.com/adamasantares/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

04/04 2016

0.1.2a

0.1.2.0-alpha https://github.com/adamasantares/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

20/12 2015

0.1.1a

0.1.1.0-alpha https://github.com/adamasantares/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf

23/08 2015

0.1.0a

0.1.0.0-alpha https://github.com/adamasantares/DXF-Creator-for-PHP#readme

A simple DXF creator for PHP

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Konstantin Kutsevalov

php dxf