avris / suml
SUML for PHP
v0.3.2
2023-05-10 22:06 UTC
Requires
- php: ^7.1|^8.0
Requires (Dev)
- phpunit/phpunit: ^7.0
- symfony/var-dumper: ^4.0
README
This is a PHP implementation of a parser and a dumper of SUML: Simple & Unambiguous Markup Language. You can check out its specification at gitlab.com/Avris/SUML
Installation
composer require avris/suml
Usage
$suml = new \Avris\Suml\Suml;
$parsed = $suml->parse("'input'");
$parsedFile = $suml->parseFile(__DIR__ . '/filename.suml');
$dump = $suml->dump(['foo' => 'bar', 'lorem' => true])
Tests
vendor/bin/phpunit