├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json └── src ├── DataArray.php ├── SchemaOrg.php ├── TypeList.php └── TypeListGenerator.php /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 | 7 | ## [Unreleased] 8 | 9 | ## [0.3.4] - 2025-04-08 10 | ### Fixed 11 | * An error when a `@graph` property contains only a single object instead of an array of objects. See issue: https://github.com/crwlrsoft/schema-org/issues/7 12 | 13 | ## [0.3.3] - 2025-01-10 14 | ### Fixed 15 | * Enable reading multiple schema.org objects from a JSON-LD script block containing an array of schema.org objects. 16 | 17 | ## [0.3.2] - 2024-11-06 18 | ### Fixed 19 | * Updated types list from spatie/schema-org v3.23. 20 | 21 | ## [0.3.1] - 2023-11-30 22 | ### Fixed 23 | * Support usage with the new Symfony major version v7. 24 | 25 | ## [0.3.0] - 2023-09-25 26 | ### Added 27 | * Objects in an array with key `@graph` like in this example https://schema.org/Article#eg-0399, can now also be parsed. As well as child objects in an array (see the test case with the graph notation). 28 | 29 | ## [0.2.1] - 2023-05-25 30 | ### Fixed 31 | * If a schema.org object has a non string @type, it is ignored and a warning is logged, if the class has a logger. 32 | 33 | ## [0.2.0] - 2023-05-17 34 | ### Added 35 | * You can now optionally pass a PSR-3 LoggerInterface to the `SchemaOrg` class, so it'll log decoding errors. 36 | 37 | ### Fixed 38 | * The `Json` class from the crwlr/utils is now used to decode JSON strings. It tries to fix keys without quotes, which is allowed in relaxed JSON. Further, JSON-LD