项目作者: jawira

项目描述 :
PlantUML text encoding functions for PHP
高级语言: PHP
项目地址: git://github.com/jawira/plantuml-encoding.git
创建时间: 2017-11-23T20:36:18Z
项目社区:https://github.com/jawira/plantuml-encoding

开源协议:Other

下载


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

  1. <?php
  2. use function Jawira\PlantUml\encodep;
  3. $diagram = <<<TXT
  4. @startuml
  5. Bob -> Alice : hello
  6. @enduml
  7. TXT;
  8. $encode = encodep($diagram); // SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
  9. 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

  1. $ 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…