thefuntasty/neon-diff

PHP library to compare Neon file against a template

1.2.0 2019-04-18 05:15 UTC

This package is auto-updated.

Last update: 2024-04-18 16:14:15 UTC


README

PHP library to compare Neon file against a template

Installation

composer require thefuntasty/neon-diff

Usage

vendor/bin/neon-diff [template] [neon]

where [neon] is any NEON file and [template] is a template Neon file includes schema and regexps to compare with.

Template

key1: value1 # Exact match
key2: '~^[a-zA-Z0-9_\-]+$~' # Regular expression match, must start and end with `~` character 
key3: '~^(value3|value4)$~' # Another example of regular expression match
key4: yes # Boolean support