src/Helpers/YamlExtractor.php
public static function parse($path)
    {
        if (!file_exists($path)) {
            throw new Exception('The give file ' . $path . ' doesn\'t exist.');
        }

        return Yaml::parse(file_get_contents($path));

    }
public static function parse($path)
    {
        if (!file_exists($path)) {
            throw new Exception('The give file ' . $path . ' doesn\'t exist.');
        }

        return Yaml::parse(file_get_contents($path));

    }
Parses an YAML file from an given path.

@param $path
@return mixed
@throws Exception When file couldn't be found