PHPackages                             adamasantares/dxf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. adamasantares/dxf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adamasantares/dxf
=================

A simple DXF creator for PHP

0.1.36(7y ago)2610.3k↑148.6%19[1 issues](https://github.com/KOYU-Tech/DXF-Creator-for-PHP/issues)MITPHPPHP &gt;=5.4.0

Since Aug 23Pushed 2y ago4 watchersCompare

[ Source](https://github.com/KOYU-Tech/DXF-Creator-for-PHP)[ Packagist](https://packagist.org/packages/adamasantares/dxf)[ Docs](https://github.com/active-programming/DXF-Creator-for-PHP#readme)[ RSS](/packages/adamasantares-dxf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (15)Used By (0)

DXF Creator for PHP
===================

[](#dxf-creator-for-php)

A simple DXF creator for PHP. This code is the upgrade of [DXF-Writer](http://www.phpclasses.org/package/7954-PHP-Generate-CAD-files-in-the-AutoCAD-DXF-format.html).

Examples
--------

[](#examples)

Miscellaneous with image:

```
// 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:

[![](https://raw.githubusercontent.com/mariofevre/DXF-Creator-for-PHP/master/demo/demo4.png)](https://raw.githubusercontent.com/mariofevre/DXF-Creator-for-PHP/master/demo/demo4.png)

Install by Composer
-------------------

[](#install-by-composer)

```
composer require adamasantares/dxf "0.1.6"

```

or

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

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~248 days

Recently: every ~413 days

Total

13

Last Release

939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9618bbefb62908f2bf73f84c0c56400bca1f0225abad85de3130e70742406936?d=identicon)[adamasantares](/maintainers/adamasantares)

---

Top Contributors

[![adamasantares](https://avatars.githubusercontent.com/u/5537618?v=4)](https://github.com/adamasantares "adamasantares (34 commits)")[![mariofevre](https://avatars.githubusercontent.com/u/19802420?v=4)](https://github.com/mariofevre "mariofevre (7 commits)")[![dive-michiel](https://avatars.githubusercontent.com/u/2650975?v=4)](https://github.com/dive-michiel "dive-michiel (2 commits)")[![bmts](https://avatars.githubusercontent.com/u/3626749?v=4)](https://github.com/bmts "bmts (1 commits)")[![maskas](https://avatars.githubusercontent.com/u/1159983?v=4)](https://github.com/maskas "maskas (1 commits)")[![sylv34](https://avatars.githubusercontent.com/u/31843227?v=4)](https://github.com/sylv34 "sylv34 (1 commits)")

---

Tags

phpdxf

### Embed Badge

![Health badge](/badges/adamasantares-dxf/health.svg)

```
[![Health](https://phpackages.com/badges/adamasantares-dxf/health.svg)](https://phpackages.com/packages/adamasantares-dxf)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
