PHPackages                             sirvelia/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. sirvelia/dxf

ActiveLibrary

sirvelia/dxf
============

A simple DXF creator for PHP

v0.1.1(1y ago)07MITPHPPHP &gt;=7.4.0

Since Nov 7Pushed 1y agoCompare

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

READMEChangelog (2)DependenciesVersions (3)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

22

—

LowBetter than 22% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 68% 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 ~0 days

Total

2

Last Release

552d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5029e0ad5278b4e3cdd5cebcc2ae0d2cb93698cd76f4afeb5fcc831ab1dfda10?d=identicon)[joanrodas](/maintainers/joanrodas)

---

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)")[![joanrodas](https://avatars.githubusercontent.com/u/47475754?v=4)](https://github.com/joanrodas "joanrodas (4 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/sirvelia-dxf/health.svg)

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

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[adamasantares/dxf

A simple DXF creator for PHP

2610.3k](/packages/adamasantares-dxf)

PHPackages © 2026

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