Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plantuml Encoding Laravel Package

jawira/plantuml-encoding

PHP library providing PlantUML text encoding helpers. Use encodep() to convert an @startuml diagram (UTF-8) into the compressed URL-safe string used by plantuml.com. Includes encode6bit(), append3bytes(), and encode64().

View on GitHub
Deep Wiki
Context7

PlantUML text encoding functions

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

  • If you liked this project, ⭐ star it on GitHub. GitHub Repo stars
  • Or follow me on Twitter. Twitter Follow

Credits

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


Packages from jawira

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport