avris / suml-symfony
SUML support for Symfony
v0.4.4
2023-05-10 22:09 UTC
Requires
- php: ^7.1|^8.0
- avris/suml: ^0.3
- symfony/config: ^4.2|^5.0|^6.0
- symfony/dependency-injection: ^4.2|^5.0|^6.0
- symfony/http-kernel: ^4.2|^5.0|^6.0
- symfony/routing: ^4.2|^5.0|^6.0
- symfony/serializer: ^4.2|^5.0|^6.0
Requires (Dev)
- symfony/console: ^4.2|^5.0
- symfony/finder: ^4.3|^5.0
- symfony/translation: ^4.3|^5.0
- symfony/var-dumper: ^4.0|^5.0
- symfony/yaml: ^4.3|^5.0
README
This is a Symfony bundle that provides a support for SUML: Simple & Unambiguous Markup Language. You can check out its specification at gitlab.com/Avris/SUML
Features
- Registers
Avris\Suml\Suml
as a service - Adds
'suml'
as a type for The Serializer Component - Adds
.suml
files support for The Routing Component - Adds
.suml
files support for The DependencyInjection Component - Adds
.suml
files support for The Translation Component - Adds
suml:from-yaml
command which converts YAML files to SUML
Installation
composer require avris/suml-symfony
In the Kernel of your application, add .suml
as a valid config extension:
const CONFIG_EXTS = '.{php,xml,yaml,yml,suml}';
And activate SUML as a source of Container config by adding a trait to your Kernel:
use SumlKernelTrait;
If you want to convert your existing files from YAML to SUML, you can run:
bin/console suml:from-yaml <directory-or-filename> -r