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.0(9mo ago)6313.0k↓41.7%71MITPHPPHP ^8.2CI failing

Since Mar 19Pushed 9mo 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 1mo ago

READMEChangelog (10)Dependencies (10)Versions (41)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.1.x[![Branch 4.1](https://camo.githubusercontent.com/5a892ac410dace9cd0814a5b4daacb5b9c1572f11aa5fa80290065d2bfad9e57/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d342e312d6f72616e6765)](https://github.com/llaville/umlwriter/tree/4.1)[![Minimum PHP Version)](https://camo.githubusercontent.com/70d66122c804bad709301a59d5b7c112f49eeaebba2daf619515e0637a0d727a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f756d6c7772697465722f342e312e30)](https://www.php.net/supported-versions.php)[![Stable Version 4.1](https://camo.githubusercontent.com/c79f7820d0ad390cdd6ab7dbc35b9567fb36514e3b16115126d39b7b66722e44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76342e312e302d626c7565)](https://packagist.org/packages/bartlett/umlwriter)[![License 4.1](https://camo.githubusercontent.com/9b197e0b58d9806b4c5167ba6c857ba4007b6ed90299a9587b8bf5148dcc299c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626172746c6574742f756d6c777269746572)](https://github.com/llaville/umlwriter/blob/4.1/LICENSE)[![Documentation 4.1](https://camo.githubusercontent.com/d5cdfe90b8969c9252ee5a8eeff376dfa767ce8d84659ff5beeb7ff5ebe799fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d76342e312d677265656e)](https://github.com/llaville/umlwriter/tree/4.1/docs)Stable 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/6760e760b0405d98d0dfddd41b9e0dc37249dbf62c2e5f7be6c27e34d9f96f22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626172746c6574742f756d6c7772697465722f342e342e30)](https://www.php.net/supported-versions.php)[![Stable Version 4.4](https://camo.githubusercontent.com/d8233db83eabf02e57590d038411902c5abe30c28a6a4f5f319ea94f8e87aef6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76342e342e302d626c7565)](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

55

—

FairBetter than 98% of packages

Maintenance58

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community15

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

Recently: every ~65 days

Total

40

Last Release

272d 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 (430 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

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)

PHPackages © 2026

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