PHP code example of jawira / plantuml-encoding
1. Go to this page and download the library: Download jawira/plantuml-encoding library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jawira / plantuml-encoding example snippets
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";