jawira/plantuml-encoding
PlantUML encoding functions
Maintainers
v1.1.1
2024-12-22 17:49 UTC
Requires
- php: >=7.4
- ext-zlib: *
Requires (Dev)
- phpstan/phpstan: ^2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
- 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
-
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...
