Explain and validate your domain with PHP Attributes and automatically generate documentation from it.
Via Composer
$ composer require jeroen-g/ontology
Please see the changelog for more information on what has changed recently.
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: https://github.com/thephpleague/construct-finder
- 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?
MIT. Please see the license file for more information.