PHPackages                             bartlett/umlwriter - 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. bartlett/umlwriter

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

bartlett/umlwriter
==================

Create UML class diagrams from your PHP source.

4.4.1(2mo ago)6313.4k↓73.6%61MITPHPPHP ^8.2CI passing

Since Mar 19Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/llaville/umlwriter)[ Packagist](https://packagist.org/packages/bartlett/umlwriter)[ Docs](https://github.com/llaville/umlwriter)[ RSS](/packages/bartlett-umlwriter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (20)Versions (42)Used By (1)

UmlWriter
=========

[](#umlwriter)

[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)[![GitHub Discussions](https://camo.githubusercontent.com/1f218b137f0f3e6d3993fdda81bacbeab39fe0a8862cfa9c7f789ce342ed3cf4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f6c6c6176696c6c652f756d6c777269746572)](https://github.com/llaville/umlwriter/discussions)

ReleasesBranchPHPPackagistLicenseDocumentationStable v4.2.x[![Branch 4.2](https://camo.githubusercontent.com/9f0ecaa496e03b73f7d111eca27595548757dbcc51bd2190611aa40194eb4e4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d342e322d6f72616e6765)](https://github.com/llaville/umlwriter/tree/4.2)[![Minimum PHP Version)](https://camo.githubusercontent.com/afe2ebd262b6e8a5f734a17514a3a79ae81a5ea1588dedcb0fe7d0bdbbcae024/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f756d6c7772697465722f342e322e32)](https://www.php.net/supported-versions.php)[![Stable Version 4.2](https://camo.githubusercontent.com/a79ea504e1d32f74775e16526b172137ff4959258d547f86f7c9af5e6ce0a780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76342e322e322d626c7565)](https://packagist.org/packages/bartlett/umlwriter)[![License 4.2](https://camo.githubusercontent.com/9b197e0b58d9806b4c5167ba6c857ba4007b6ed90299a9587b8bf5148dcc299c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f756d6c777269746572)](https://github.com/llaville/umlwriter/blob/4.2/LICENSE)[![Documentation 4.2](https://camo.githubusercontent.com/d83deb019584ed6046ace31704088559827ec7cc46034372a5b1405bf11cda95/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76342e322d677265656e)](https://github.com/llaville/umlwriter/tree/4.2/docs)Stable v4.3.x[![Branch 4.3](https://camo.githubusercontent.com/de306752b011e37a61f5dd9c44794b79c1d474e3deae7ed1b94c0544cdd8a946/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d342e332d6f72616e6765)](https://github.com/llaville/umlwriter/tree/4.3)[![Minimum PHP Version)](https://camo.githubusercontent.com/9bc347e59d166d17f53d0e4c3290ee9ec63a61554341ff0322b104e07f10554f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f756d6c7772697465722f342e332e30)](https://www.php.net/supported-versions.php)[![Stable Version 4.3](https://camo.githubusercontent.com/290282797b308be43325ebc02a9cd27da24dccd43ffb3893d98b95e05ad97a5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76342e332e302d626c7565)](https://packagist.org/packages/bartlett/umlwriter)[![License 4.3](https://camo.githubusercontent.com/9b197e0b58d9806b4c5167ba6c857ba4007b6ed90299a9587b8bf5148dcc299c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f756d6c777269746572)](https://github.com/llaville/umlwriter/blob/4.3/LICENSE)[![Documentation 4.3](https://camo.githubusercontent.com/7cb1a4915275d50f5b74199339c8274b1751d50858fd2a86a128d8fbd2f42cc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76342e332d677265656e)](https://github.com/llaville/umlwriter/tree/4.3/docs)Stable v4.4.x[![Branch 4.4](https://camo.githubusercontent.com/ca9300a8b31922d7f6fc2aba676fa0a5eaf424dfbef3f17186fcae75198bcc47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d342e342d6f72616e6765)](https://github.com/llaville/umlwriter/tree/4.4)[![Minimum PHP Version)](https://camo.githubusercontent.com/ca3fcb065fcae7b5719042283f4b9ef4c516cf5cd1f83182e646ae13f07366a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f756d6c7772697465722f342e342e31)](https://www.php.net/supported-versions.php)[![Stable Version 4.4](https://camo.githubusercontent.com/90538c0bb47e588cd258c7c2ca95499faaa98bd142c66c28e2288a8a727e4fd5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76342e342e312d626c7565)](https://packagist.org/packages/bartlett/umlwriter)[![License 4.4](https://camo.githubusercontent.com/9b197e0b58d9806b4c5167ba6c857ba4007b6ed90299a9587b8bf5148dcc299c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f756d6c777269746572)](https://github.com/llaville/umlwriter/blob/4.4/LICENSE)[![Documentation 4.4](https://camo.githubusercontent.com/cbb7e97782479ba92f3d2e57f6cd3c51072bbeed68350fa433e7c6f28d69a758/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76342e342d677265656e)](https://github.com/llaville/umlwriter/tree/4.4/docs)**UmlWriter** is a library that adds the ability to generate UML class diagrams.

Documentation
-------------

[](#documentation)

All the documentation is available on [website](https://llaville.github.io/umlwriter/4.4), generated from the [docs](https://github.com/llaville/umlwriter/tree/4.4/docs) folder.

Usage
-----

[](#usage)

This library includes a console CLI version with only one command: `diagram:class`

```
bin/umlwriter diagram:class src/
```

**NOTE** use verbose level 1 or 2 for more details.

Contributors
------------

[](#contributors)

- Laurent Laville (Lead Developer)

Credits
-------

[](#credits)

[bartlett/graph-uml](https://github.com/llaville/graph-uml) is a refactored version (with more features) of [clue/graph-uml](https://github.com/clue/graph-uml) project, licensed under MIT.

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 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 ~101 days

Recently: every ~67 days

Total

41

Last Release

77d ago

Major Versions

1.3.1 → 2.0.0-beta.12020-04-24

2.1.0 → 3.0.02021-12-26

2.1.1 → 3.1.12022-01-04

2.2.0 → 3.3.02022-12-17

3.4.x-dev → 4.0.02023-12-27

PHP version history (8 changes)1.0.0-RC1PHP &gt;=5.3.0

1.1.0PHP &gt;=5.4.0

1.2.1PHP ^5.4|^7.0

2.0.0-beta.1PHP ^7.1.3

2.0.0-rc.3PHP ^7.1.3||^8.0

3.0.0PHP ^8.0

4.0.0PHP ^8.1

4.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/555d494363fdc69e712d56b46d3b9bf3fe221f2dae8a0cf3c732b0138d54f192?d=identicon)[llaville](/maintainers/llaville)

---

Top Contributors

[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (456 commits)")

---

Tags

phpuml-class-diagramumlgraphvizplantuml

### Embed Badge

![Health badge](/badges/bartlett-umlwriter/health.svg)

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

###  Alternatives

[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[typo3/cms-core

TYPO3 CMS Core

3713.2M5.1k](/packages/typo3-cms-core)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)

PHPackages © 2026

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