All Notable changes to schema-org will be documented in this file.
- add identifiers to
\Spatie\SchemaOrg\Graphnodes #124
- RDFa update
- fix after malformed RDFa import twitter.com/ScreamingDev
- RDFa update
- Fix types to implement their own contract
- Use contracts as type-hints in doc-blocks
- Add PHP 7.4 support
- Fix
Graphmagic call - RDFa update
- Drop PHP 7.2 support
- Drop PHP 7.1 support
- Drop PHP 7.0 support
- Fix identifier serialization
- Add reflection support
- RDFa update
- Fix null values
- Fix pending Types
- RDFa update
- Add
Graphsupport
- Convert invalid objects that have a
__toStringmethod to strings
- Fix previous release
- Use
httpsprotocol for Schema.org links
- Supports multiple type inheritance. Types no longer extend each other, they all are a direct extension of
BaseType - This release probably doesn't contain any breaking changes for most people. It breaks all type checks (e.g.
instanceof LocalBusiness), but doesn't change the way types are generated
- Regenerated types
- Added:
Enumerationchild types with constants, e.g.Spatie\Schema\DayOfWeek::Monday.
- Added: All types are now json serializable and have array access
- Fixed: Date format in schemas is now ISO8601 (
DateTime::ATOM)
- Fixed:
@paramhints for numbers (float|int)
- Added:
BaseType::addPropertiesmethod to add multiple properties in one go - Fixed:
@paramhints now also have array versions of the accepted data types, likestring|string[]
- Added:
__callcatches unknown methods and callssetPropertyunder the hood, using the method name as the property name and the first argument as property value - Added (by updating generated types):
CreativeWork::accessMode,CreativeWork::accessModeSufficient,CreativeWork::accessibilitySummary,Event::audience,FoodEstablishment::hasMenu - Removed (by updating generated types, note that this isn't breaking because
__callwill catch your method calls):Menu::menuAddOn
- Fixed: New lines are considered and no longer break docs
- Fixed: HTML line breaks are removed from the docs
- Added: Objects that implements
DateTimeInterfaceare now formatted to an ISO 8601 compliant string - Fixed: Some properties were missing due to some whitespace parsing issues
- Added:
iffunction to conditionally modify the schema
- Fixed: Arrays of properties are now correctly serialized when converted to ld+json
- Initial release