Download the PHP package brunner-medien/pimcore-plantuml without Composer

On this page you can find all versions of the php package brunner-medien/pimcore-plantuml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pimcore-plantuml

PlantUML class diagram generation based on pimcore class definition

Requirements

Introduction

This bundle lets you create UML class diagrams based on the class definition as defined in your project. Actually your workflow normally is the other way around - you set up Pimcore based on your project's requirements, which probably involves some modelling.

However too often hand-crafted models get outdated. This is where this bundle becomes useful. It creates the source code for PlantUML, which is a (human readable) text based UML rendering engine.

PlantUmlBundle does not create the diagram image file for you, but the plantuml source. This is for following reasons:

If you just want to play around with it, there is an online renderer available: https://plantuml.com/plantuml.

Supported data types

All Pimcore native data types are supported, namely:

Installation

Nothing fancy here, just install via composer and enable via Pimcore backend or console command:

$ composer req brunner-medien/pimcore-plantuml

$ bin/console pimcore:bundle:enable PlantUmlBundle

Usage

The PlantUmlBundle has a backend integration in Pimcore "Settings" > "PlantUML". This menu (along with all admin API calls) is available for the admin user only.

Each configuration has its own scope. Imagine you have a large project with dozens of objects - a single class diagram showing all classes probably would not be very helpful. Instead, you select from the "Object" namespace tree at least one or more "seed" objects. Starting with these seeds, all related items become part of your class diagram.

This way, you can break down your diagram into different aspects, showing only the information that is relevant from one point of view.

Translations

If you have your class names and field labels translated (using admin translations), you can choose to use these. For class properties, the technical (getter) names are shown as well.

Templates

PlantUML source code is generated using Twig. Feel free to adjust the default template, or register your own.

config.yml:

Classes and Stereotypes

Generating a class diagram from Pimcore's class (and object brick / classification store) definitions usually generates some extra classes that have not been explicitly defined. This is necessary in order to retain correct multiplicity annotations. A block field for example yields a dedicated class with its own properties and associations, having a "0..n" association of type Composition where n is the amount of allowed blocks as defined in the block field. Non-object classes have their own stereotypes and are displayed in different colors.

Association classes

When a relation allows multiple objects (or document / asset types), things get slightly more complicated. There is no "standard" way to visualize such a relation in a class diagram. PlantUmlBundle creates a so called "association class" - an anonymous class visualized by a diamond shape. The allowed classes then "realize" this association class, hence have an association of type Realization. This probably may not be pure standard UML, but again helps to visualize your relations as correct as possible.

Relation classes

Relations of type "Advanced many-to-many" also create a dedicated class in between the two related classes. These "relation classes" have their own stereotype "relation".

Generalization associations

Generalization associations are created for Documents and Assets and their subtypes (like Image, Video, Archive etc).

Example

This basic example shows some of PlantUmlBundle's features:

Generated PUML:


All versions of pimcore-plantuml with dependencies

PHP Build Version
Package Version
Requires pimcore/pimcore Version ^10.0
jawira/plantuml-encoding Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brunner-medien/pimcore-plantuml contains the following files

Loading the files please wait ....