spyc icon indicating copy to clipboard operation
spyc copied to clipboard

A simple YAML loader/dumper class for PHP

Results 31 spyc issues
Sort by recently updated
recently updated
newest added

Thank you for your library. I've been running development with PHP8.2 to iron out any problems well in advance of deploying it, and hit this one. I know it's only...

Examle: ``` key1: &alias text value key2: *alias ``` Is supposed to create a dictionary { 'key1' => 'text value', 'key2' => 'text value' } Instead it puts the literal...

If y have the following code in my YAML file : `primary: [section, key]` (the character between "primary:" and "[sec..." is a tab [\t]) then the array is not parsed...

https://github.com/mustangostang/spyc/blob/4627c838b16550b666d15aeae1e5289dd5b77da0/Spyc.php#L188 This line and others has PHP 5.4+ style array brackets, however the version in composer.json still has requires >= 5.3.1.

- Installing mustangostang/spyc (0.6.3): Cloning 4627c838b1 [RuntimeException] Failed to execute git clone --no-checkout '[email protected]:mustangostang/spyc.git' '/var/www/html/vendor/mustangostang/spyc' && cd '/var/www/html/vendor/mustangostang/spyc' && git remote add composer '[email protected]:mustangostang/spyc.git' && git fetch composer && git...

This PR makes the project to be compliant with PSR-4 and PSR-12 specifications. Remove the PHP4 support and creates a command line option following composer.json specification.

This: ``` martin: name: Martin D'vloper job: Developer skill: Elite ``` Gives " Illegal string offset" error for the "name"

$array['buildings'] = array(array('location_x' => $locationX, 'element' => $element, 'temperature' => $temperature, 'storage' => [], 'rottable' => '{}', 'amounts' => [], 'other_values' => [])); returns buildings: - location_x: null element: null...

Requires PHP >=5.3.1 in composer.json

When I use spyc_load() to parse this json (which is also yaml): { "x": 1 } and do a json_encode() to the result, I get [ { "x": 1 },...