PHPackages                             jeroen-g/ontology - 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. jeroen-g/ontology

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

jeroen-g/ontology
=================

Explain your domain with PHP Attributes

13PHP

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Jeroen-G/Ontology)[ Packagist](https://packagist.org/packages/jeroen-g/ontology)[ RSS](/packages/jeroen-g-ontology/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ontology
========

[](#ontology)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bdd67e8ea98aef4c67ca581505f07fc2a7339473c23d745c442b01bce951bb7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65726f656e2d672f6f6e746f6c6f67792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroen-g/ontology)

Explain and validate your domain with PHP Attributes and automatically generate documentation from it.

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

[](#installation)

Via Composer

```
$ composer require jeroen-g/ontology
```

Usage
-----

[](#usage)

[![image](./ontology.gif)](./ontology.gif)

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

So you'd like to contribute? Awesome! Here is a (incomplete) list of things on the roadmap that you could start a PR on, but feel free to suggest anything else!

- Dockerfile
- Ahoy/Makefile
- More attributes, such as:
    - Tag
    - SideEffect, SideEffectFree
    - Highlight
    - Bankrupt
    - BoundedContext
    - Factory
    - DataTransferObject
    - Command
    - Query
- Testing helpers, such as:
    - Get all classes with given attribute
    - Get all (DDD) attributes for a given class
    - protip:
- More validators for all attributes, based on widely agreed conventions (e.g. value objects should have no setters)
- Does this work with custom, from outside the package, DDD attributes?

Credits
-------

[](#credits)

- [Jeroen](https://github.com/jeroen-g)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d8700d69abe733de151f8cf49084e99ded7b9d34d7b0d1cd8f3825f5d925ff3?d=identicon)[JeroenG](/maintainers/JeroenG)

---

Top Contributors

[![Jeroen-G](https://avatars.githubusercontent.com/u/1116853?v=4)](https://github.com/Jeroen-G "Jeroen-G (9 commits)")

### Embed Badge

![Health badge](/badges/jeroen-g-ontology/health.svg)

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

###  Alternatives

[flourish/flourish

A collection of classes for general web development, with a particular focus on compatibility, portability and security

18243.1k](/packages/flourish-flourish)[workerman/statistics

3532.8k](/packages/workerman-statistics)[workbunny/webman-nacos

Webman plugin workbunny/webman-nacos

673.9k](/packages/workbunny-webman-nacos)[flipsite/flipsite

Static website compiler that scores 100/100 on all Lighthouse tests

182.3k](/packages/flipsite-flipsite)

PHPackages © 2026

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