Download the PHP package atelier/diagram without Composer

On this page you can find all versions of the php package atelier/diagram. 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 diagram

Atelier Diagram

Fifteen diagram families, from PHP or from Mermaid, rendered to SVG without a browser.

PHP Version Tests PHPUnit PHPStan Stable License

Build a typed model with a fluent builder, or parse a documented Mermaid subset, then render deterministic SVG. No headless browser, no JavaScript runtime, no external binary.

 

The same model renders back to canonical Mermaid, and round-trip tests hold both directions to it. Backed by an extensive test suite and PHPStan at its highest level.

Build from PHP · Theming · Documentation

Installation

Requires PHP 8.3 or later. Depends on atelier/svg for output and atelier/layout for spatial maths, both pure PHP.

Quick start

The grammar is detected from the first significant line. See Getting started.

Fifteen diagram types

Type Mermaid header Type Mermaid header
Flowchart flowchart Mindmap mindmap
State stateDiagram-v2 Requirement requirementDiagram
Sequence sequenceDiagram Kanban kanban
Class classDiagram Block block
ER erDiagram Architecture architecture
Git graph gitGraph C4 C4Context
Timeline timeline Venn builder only
Journey journey

Each page shows the same diagram three ways: its Mermaid source, the equivalent PHP, and the rendered result. Venn diagrams have no text form in this package.

Build from PHP

Every type has a fluent builder reached from the facade, and each one speaks its own domain: states and transitions, participants and messages, commits and branches.

The builder returns a typed model, not markup, so it can be inspected, tested, and rendered more than once.

Parse Mermaid

Fourteen of the fifteen families parse a deliberately small, exactly specified Mermaid subset. Anything outside it throws a ParseException carrying the offending line number, rather than silently rendering something else.

What the parser accepts, the Markdown renderer emits, and round-trip tests hold both sides to it. See Mermaid support.

Render

toSvgDocument() hands back an atelier/svg document when the diagram has to compose into a larger drawing. See Renderers.

Theming

Five presets, and every colour, font and spacing value is a field you can override.

default, dark, blueprint, mono, and neutral. See Theming.

Documentation

The full documentation is published at ateliersvg.com/diagram.

Contributing

Contributions are welcome. Visit the project on GitHub to report a bug, suggest a feature, or open a pull request.

Before submitting code, run:

Changes to public behaviour need a test and a documentation update.

Support

Bug reports, security disclosures, and contribution guidelines are collected at ateliersvg.com/support.

Sharing the package or starring it on GitHub helps more than you would think.

License

Atelier Diagram is released under the MIT License.


All versions of diagram with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-mbstring Version *
atelier/layout Version ^0.8
atelier/svg 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 atelier/diagram contains the following files

Loading the files please wait ...