avris / suml-symfony
SUML support for Symfony
Package info
Type:symfony-bundle
pkg:composer/avris/suml-symfony
v0.5.0
2026-12-03 13:13 UTC
Requires
- php: ^8.0
- avris/suml: ^0.3
- symfony/config: ^4.2|^5.0|^6.0|^7.0|^8.0
- symfony/dependency-injection: ^4.2|^5.0|^6.0|^7.0|^8.0
- symfony/http-kernel: ^4.2|^5.0|^6.0|^7.0|^8.0
- symfony/routing: ^4.2|^5.0|^6.0|^7.0|^8.0
- symfony/serializer: ^4.2|^5.0|^6.0|^7.0|^8.0
Requires (Dev)
- symfony/console: ^4.2|^5.0|^6.0|^7.0|^8.0
- symfony/finder: ^4.3|^5.0|^6.0|^7.0|^8.0
- symfony/translation: ^4.3|^5.0|^6.0|^7.0|^8.0
- symfony/var-dumper: ^4.0|^5.0|^6.0|^7.0|^8.0
- symfony/yaml: ^4.3|^5.0|^6.0|^7.0|^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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\Sumlas a service - Adds
'suml'as a type for The Serializer Component - Adds
.sumlfiles support for The Routing Component - Adds
.sumlfiles support for The DependencyInjection Component - Adds
.sumlfiles support for The Translation Component - Adds
suml:from-yamlcommand 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;
On Symfony 8+, MicroKernelTrait defines getContainerLoader() too, so tell PHP which one to use:
use MicroKernelTrait, SumlKernelTrait {
SumlKernelTrait::getContainerLoader insteadof MicroKernelTrait;
}
If you want to convert your existing files from YAML to SUML, you can run:
bin/console suml:from-yaml <directory-or-filename> -r