PHPackages                             olivierlb/phpdxf - 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. olivierlb/phpdxf

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

olivierlb/phpdxf
================

v1.2.2(6y ago)035MITPHPPHP &gt;=5.4.0

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/OlivierLB/PhpCreatorDXF_TimesNewRoman)[ Packagist](https://packagist.org/packages/olivierlb/phpdxf)[ Docs](https://github.com/OlivierLB/PhpCreatorDXF_TimesNewRoman/blob/master/README.md)[ RSS](/packages/olivierlb-phpdxf/feed)WikiDiscussions master Synced 1mo ago

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

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

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

A simple DXF creator for PHP. With Times\_New\_Roman font. This code is the upgrade of [DXF-Creator-for-PHP](https://github.com/active-programming/DXF-Creator-for-PHP). It change the font to "Times\_New\_Roman"

Examples
--------

[](#examples)

Miscellaneous:

```
$dxf = new Creator(Creator::MILLIMETERS);
$dxf->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)
    ->saveToFile('demo.dxf');

```

Result:

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

Ellipse:

```
$dxf = new Creator(Creator::MILLIMETERS);
$dxf->setColor(Color::rgb(0, 100, 0))
    ->addEllipse(-20, 0, 0, -20, 30, 0, 0.5)
    ->setLayer('2', Color::MAGENTA, LineType::SOLID)
    ->addEllipseBy3Points(20, 0, 0, 20, 30, 0, 35, 0, 0)
    ->saveToFile(dirname(__FILE__) . '/demo3.dxf');

```

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

See "demo" directory of project.

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

[](#install-by-composer)

```
composer require olivierlb/phpdxf

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

9

Last Release

2349d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67766842cc12cb47f30e19c3878631ed5bba56a69ad3c146264fc3f4e0175360?d=identicon)[OlivierLB](/maintainers/OlivierLB)

---

Top Contributors

[![OlivierLB](https://avatars.githubusercontent.com/u/15940374?v=4)](https://github.com/OlivierLB "OlivierLB (14 commits)")

---

Tags

phpdxf

### Embed Badge

![Health badge](/badges/olivierlb-phpdxf/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[adamasantares/dxf

A simple DXF creator for PHP

2610.3k](/packages/adamasantares-dxf)

PHPackages © 2026

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