Skip to content
Neon to Yaml syntax converter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
src
tests
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json nette v3 utils, neon, di support Mar 11, 2019
phpunit.xml

README.md

Neon to Yaml Converter

Build Status Downloads total

Do you want to turn your Neon templates to Yaml? There are many differences you need to watch out for.

This tool automates it :)

Before

includes:
    - another-config.neon

parameters:
    perex: '''
        This is long multiline perex,
that takes too much space.
'''

services:
    - App\SomeService(@anotherService, %perex%)

After

imports:
    - { resource: another-config.yaml }

parameters:
    perex: |
        This is long multiline perex,
        that takes too much space.

services:
    App\SomeService:
        arguments:
            - '@anotherService'
            - '%perex%'

And much more!

This package won't do it all for you, but it will help you with 90 % of the boring work.

Install

composer require symplify/neon-to-yaml-converter --dev

Usage

It scan all the *.(yml|yaml|neon) files and converts Neon syntax to Yaml and *.yaml file.

vendor/bin/neon-to-yaml-converter convert file.neon
vendor/bin/neon-to-yaml-converter convert /directory

That's it :)

You can’t perform that action at this time.