arturu / laying
Laying convert YAML to XML/HTML file
v2.4
2019-12-19 10:35 UTC
Requires
- php: >=5.6
- arturu/xml-tag: >=1.3
- symfony/console: >=2.8
- symfony/filesystem: >=2.8
- symfony/process: >=2.8
- symfony/yaml: >=2.8
Requires (Dev)
- phpunit/php-invoker: ~1.0
- phpunit/phpunit: >=5.7
This package is not auto-updated.
Last update: 2025-03-29 23:10:43 UTC
README
Laying converts an array in YML format into nested XML / HTML tags. Laying facilitates the development and management of templates for the most popular CMS. In addition, laying allows you to manage the structure of XML files. Laying receives in input a YML file that represents the structure of the file to generate and outputs the result.
Installation
composer require arturu/laying
Usage
cd vendor/arturu/laying
bin/console render /path/source/page.yml > /path/to/template/page.html
For example
cd vendor/arturu/laying
edit configuration file
nano examples/basic-examples/page-standard.yml
and exec
bin/console render examples/basic-examples/page-standard.yml > /path/to/template/page.html.twig
Documentation
See docs folder for documentation
License
GPL v3.0 - Read LICENSE file