jawira/plantuml-encoding

PlantUML encoding functions

Maintainers

👁 jawira

Package info

github.com/jawira/plantuml-encoding

pkg:composer/jawira/plantuml-encoding

Statistics

Installs: 618 196

Dependents: 11

Suggesters: 1

Stars: 20

Open Issues: 0

v1.1.1 2024-12-22 17:49 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT fe8bce2d7ff5bb5cccf374349999cef7d6246a32

encodingumlfunctionsplantumlencodep

This package is auto-updated.

Last update: 2026-05-23 02:16:17 UTC


README

This library exposes PlantUML text encoding functions:

  • encodep()
  • encode6bit()
  • append3bytes()
  • encode64()

â„šī¸ Usually only encodep() is used.

👁 Packagist Version
👁 Packagist PHP Version Support
👁 Packagist Downloads
👁 Packagist License

Usage

<?php
use function Jawira\PlantUml\encodep;

$diagram = <<<TXT
@startuml
Bob -> Alice : hello
@enduml
TXT;

$encode = encodep($diagram); // SyfFKj2rKt3CoKnELR1Io4ZDoSa70000

echo "https://www.plantuml.com/plantuml/uml/$encode";

Output: https://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000

âš ī¸ Since v1.0.0, encodep() function expects to receive an UTF-8 string.

Install

$ composer require jawira/plantuml-encoding

Contributing

Credits

These functions are a copy/paste from http://plantuml.com/code-php.

Packages from jawira

jawira/plantuml 👁 GitHub stars
Provides PlantUML executable and plantuml.jar
jawira/case-converter 👁 GitHub stars
Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.
jawira/emoji-catalog 👁 GitHub stars
Get access to +3000 emojis as class constants.
more...