Lily is a yaml parser that support import .yaml file from submodule
composer require superbogy/Lily
yaml :
parameters:
$ref: ./paramters/index.yaml
paths:
$ref: ./routers/index.yaml
definitions:
$ref: ./definitions/index.yaml
example:
use Lily\Parser;
$root = ROOT;
$lily = new Parser($root, $entry);
$data = $lily->run();