yaml icon indicating copy to clipboard operation
yaml copied to clipboard

PHP library to load and parse YAML file to PHP datatypes equivalent

Results 8 yaml issues
Sort by recently updated
recently updated
newest added

Tested with version 0.9.1.2 Given: ```php $object = new \Dallgoot\Yaml\Types\YamlObject(0); $object->api = '1'; $object->entries = array('a' => array(array('b1' => 'b', 'b2' => 'b'), array('c1' => 'c', 'c2' => 'c'))); echo...

When the file (PHP file, or the yaml strings themselves) are saved with CRLF or LF line endings, these two simple documents parse differently. ```php

I have a file containing a line like this: `title: "D: presentation"` The library loads and parses without error, but when I try to use the string, I get a...

Hello First, thank you for this nice and complete lib But i'm figuring out a problem that i cannot understand to help solve When we get [sequence](https://yaml.org/spec/1.2.2/#block-sequences) like ![image](https://github.com/dallgoot/yaml/assets/2607849/8cfac1e3-cfec-4db8-aeb9-004f7f64d8b6) We...

I have to parse a file that contains something similar to the following: ```yaml chapters: [00:00:00.000] ``` When attempting to parse this however I get the following error: `ParseError: Partial...

…issues/20 Array indentation was reset to 0 on each iteration; changed it to the correct "realIndent".

Hi! Unfortunately valid YAML is not parsed as expected. Look at example below: ```php $yamlContent = getAllReferences()); //Array ( ) print_r($obj->getReference('anchor-name')); //UnexpectedValueException: no reference named: 'anchor-name', known are : ()...