Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

deprecated-packages/neon-to-yaml-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEON to YAML Converter

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 convert file.neon
vendor/bin/neon-to-yaml convert /directory

That's it :)


Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.