Parse and serialize PlantUML in PHP.
This package has been developed for internal use in the PlantUML command for Artisan
This library provides an interface for processing PlantUML class diagrams with an in memory representation.
The purpose is to abstract class diagrams into more easily usable object-oriented types.
Contains an associative array of classes (using their name as the key) and an array of relations.
Representation of a class. Has a name, an array of fields and an associative array of related classes (using their name as the key and a list of indexes in a $schema->relations).
Representation of a relation between classes. Has a field from
and to
. Both are arrays that are used as tuples, where the first element is the name of a class in the diagram, and the second element is of type enum Multiplicity
, indicating how many of the other class this class is related to (for from
it indicates if it has one or zero, one, any or at least one of the class in to
). It also has a field type
of type enum RelationType
.
Representation of a single field in a class. Has name, type (object of type enum Type
or null), visibility (object of type enum Visibility
or null) and the modifiers unique, nullable and primary (bool).
In your project:
$ composer require as283/plant-uml-processor