jawira / plantuml-encoding
PlantUML encoding functions
Installs: 377 891
Dependents: 9
Suggesters: 1
Security: 0
Stars: 15
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=7.0
- ext-zlib: *
Requires (Dev)
- jawira/skeleton: ^2.14
- phpstan/phpstan: ^1.0
- vimeo/psalm: ^4.0
README
This library exposes PlantUML text encoding functions:
encodep()
encode6bit()
append3bytes()
encode64()
ℹ️ Usually only encodep()
is used.
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
- Provides PlantUML executable and plantuml.jar
- jawira/case-converter
- 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
- Get access to +3000 emojis as class constants.
- more...