PHPackages                             phuml/phuml - 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. phuml/phuml

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

phuml/phuml
===========

phUML is a fully automatic UML class diagram generator for PHP code

6.1.0(3y ago)11411.3k↓50%18[4 PRs](https://github.com/MontealegreLuis/phuml/pulls)1BSD-3-ClausePHPPHP ^8.1

Since Dec 7Pushed 2y ago6 watchersCompare

[ Source](https://github.com/MontealegreLuis/phuml)[ Packagist](https://packagist.org/packages/phuml/phuml)[ Docs](https://github.com/MontealegreLuis/phuml)[ RSS](/packages/phuml-phuml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (24)Versions (41)Used By (1)

phUML
=====

[](#phuml)

[![CI workflow](https://github.com/montealegreluis/phuml/actions/workflows/ci.yml/badge.svg)](https://github.com/montealegreluis/phuml/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/951483625fea590caed5f918d9764eb72832343defd3a58f84553718018c5ed7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d6f6e7465616c656772654c7569732f7068756d6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MontealegreLuis/phuml/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/846b8d55d3df9e8d6efe63dfa0be4b12eff2866e50af353c5c0eba07436cff79/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d6f6e7465616c656772654c7569732f7068756d6c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MontealegreLuis/phuml/code-structure/master/code-coverage)[![Infection MSI](https://camo.githubusercontent.com/b6b8a69ce397fd62be114569495b5c0fbc6ab9ae77636d0a1df6f10084d58b15/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f4d6f6e7465616c656772654c7569732f7068756d6c2f6d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/MontealegreLuis/phuml/master)[![Latest Stable Version](https://camo.githubusercontent.com/ba7451f2e7f745bc86aa56aaa4ec43d5cc0fe47940647c0050e8e6f30a4ed35f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068756d6c2f7068756d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phuml/phuml)[![Minimum PHP Version](https://camo.githubusercontent.com/2d18ce514c7016022dad012ac9e39a8b6f47cc411b2daff6627cbf208f8cea63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

phUML is a fully automatic [UML](http://en.wikipedia.org/wiki/Unified_Modeling_Language) class diagram generator written in [PHP](https://php.net/). It creates a class diagram from an Object-Oriented codebase based on the UML specification.

Installation
------------

[](#installation)

Phive
-----

[](#phive)

phUML can be installed by [Phive](https://phar.io/) - The PHAR Installation and Verification Environment.

```
phive install phuml

```

### Docker

[](#docker)

The official phUML Docker image can be found on [Docker Hub](https://hub.docker.com/r/montealegreluis/phuml/).

```
docker pull montealegreluis/phuml
```

Here's the list of all the available Docker image [tags](https://hub.docker.com/r/montealegreluis/phuml/tags?page=1&ordering=last_updated)

Composer
--------

[](#composer)

phUML can be installed globally by [Composer](https://getcomposer.org/).

```
composer global require phuml/phuml
```

Alternatively, you may want to install phUML as well as its dependencies.

```
composer require phuml/phuml
```

How does it look like?
----------------------

[](#how-does-it-look-like)

[![UML Diagram](https://raw.githubusercontent.com/MontealegreLuis/phuml/master/docs/phuml-example-thumbnail.png)](https://raw.githubusercontent.com/MontealegreLuis/phuml/master/docs/phuml-example-thumbnail.png)

The image shown here, is the class diagram generated by phUML when it's run against its [original codebase](https://github.com/jakobwesthoff/phuml/tree/master/src).

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

[](#documentation)

For more details visit the [documentation page](http://montealegreluis.com/phuml)

Contribute
----------

[](#contribute)

Please refer to [CONTRIBUTING](https://github.com/MontealegreLuis/phuml/blob/master/CONTRIBUTING.md) for information on how to contribute to phUML.

License
-------

[](#license)

Released under the [BSD-3-Clause](https://github.com/MontealegreLuis/phuml/blob/master/LICENSE).

Credits
-------

[](#credits)

This code is principally developed and maintained by [Luis Montealegre](https://github.com/MontealegreLuis).

This library was created by [Jakob Westhoff](https://github.com/jakobwesthoff).

Special thanks to all of these [awesome contributors](https://github.com/MontealegreLuis/phuml/contributors).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.7% 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 ~47 days

Recently: every ~54 days

Total

35

Last Release

1428d ago

Major Versions

1.8.x-dev → 2.0.02021-06-02

2.0.x-dev → 3.0.x-dev2021-06-27

3.0.0 → 4.0.02021-07-05

4.0.x-dev → 5.0.02021-07-29

5.2.2 → 6.0.02022-04-27

PHP version history (5 changes)1.0.x-devPHP ^7.1

3.0.x-devPHP ^7.2

4.0.0PHP ^7.4

5.0.0PHP ^8.0

6.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b46ca75e5efbee595c4a105f3c04f86aee6c7c5dade060fb4c194209c6195c4?d=identicon)[MontealegreLuis](/maintainers/MontealegreLuis)

---

Top Contributors

[![MontealegreLuis](https://avatars.githubusercontent.com/u/3099338?v=4)](https://github.com/MontealegreLuis "MontealegreLuis (503 commits)")[![jakobwesthoff](https://avatars.githubusercontent.com/u/160529?v=4)](https://github.com/jakobwesthoff "jakobwesthoff (8 commits)")[![dialogik](https://avatars.githubusercontent.com/u/1260548?v=4)](https://github.com/dialogik "dialogik (3 commits)")[![lovasoa](https://avatars.githubusercontent.com/u/552629?v=4)](https://github.com/lovasoa "lovasoa (1 commits)")

---

Tags

graphvizphpuml-class-diagramuml

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)[sylius/sylius

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

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

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)

PHPackages © 2026

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